summaryrefslogtreecommitdiffstats
path: root/runtime/reflection.cc
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2015-05-07 17:23:16 +0200
committerSebastien Hertz <shertz@google.com>2015-05-07 17:25:27 +0200
commit54462546aad8adb552e74e422f5f2fb107b7ee1b (patch)
tree6482480a84294f41769e3c8ba42d89c0c989ee00 /runtime/reflection.cc
parenta6591ef95afa6bc9d89c0c6044635ec7a13d4c55 (diff)
downloadandroid_art-54462546aad8adb552e74e422f5f2fb107b7ee1b.tar.gz
android_art-54462546aad8adb552e74e422f5f2fb107b7ee1b.tar.bz2
android_art-54462546aad8adb552e74e422f5f2fb107b7ee1b.zip
Remove unused InvokeWithShadowFrame
This is an artifact of the Portable compiler, probably left after its removal https://android-review.googlesource.com/119049. Change-Id: I7f6caa008e37e7a93792840c79713e90d0c7e1e1
Diffstat (limited to 'runtime/reflection.cc')
-rw-r--r--runtime/reflection.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/reflection.cc b/runtime/reflection.cc
index 329ceb561d..49e1b8edf6 100644
--- a/runtime/reflection.cc
+++ b/runtime/reflection.cc
@@ -520,23 +520,6 @@ JValue InvokeVirtualOrInterfaceWithVarArgs(const ScopedObjectAccessAlreadyRunnab
return result;
}
-void InvokeWithShadowFrame(Thread* self, ShadowFrame* shadow_frame, uint16_t arg_offset,
- JValue* result) {
- // We want to make sure that the stack is not within a small distance from the
- // protected region in case we are calling into a leaf function whose stack
- // check has been elided.
- if (UNLIKELY(__builtin_frame_address(0) < self->GetStackEnd())) {
- ThrowStackOverflowError(self);
- return;
- }
- uint32_t shorty_len;
- const char* shorty = shadow_frame->GetMethod()->GetShorty(&shorty_len);
- ArgArray arg_array(shorty, shorty_len);
- arg_array.BuildArgArrayFromFrame(shadow_frame, arg_offset);
- shadow_frame->GetMethod()->Invoke(self, arg_array.GetArray(), arg_array.GetNumBytes(), result,
- shorty);
-}
-
jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa, jobject javaMethod,
jobject javaReceiver, jobject javaArgs, size_t num_frames) {
// We want to make sure that the stack is not within a small distance from the