diff options
| author | 2017-08-30 11:37:08 -0700 | |
|---|---|---|
| committer | 2017-09-05 13:22:15 -0700 | |
| commit | 2ee17909eadd7155f4a7751c38398b36fc267f04 (patch) | |
| tree | 2d13de7e9aae9d24ceb4ff1e03f81e46a5aee54b /runtime/interpreter/interpreter.h | |
| parent | 1accd636dc90edef2878f0b8e2716b078379842e (diff) | |
Revert^4 "Allow deoptimization when returning from a runtime method."
This reverts commit 07c7028e518b98d3267a77dfe0d149db1adbe858.
Need some special treatment of string init's shorty.
Test: run-test/gtest on both host and target
Test: 597-deopt-busy-loop, 597-deopt-invoke-stub
Bug: 33616143
Change-Id: Id4c64910acfdd088835b6db6fc503e6ade0218e7
Diffstat (limited to 'runtime/interpreter/interpreter.h')
| -rw-r--r-- | runtime/interpreter/interpreter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/interpreter/interpreter.h b/runtime/interpreter/interpreter.h index 65cfade09a..df8568edcd 100644 --- a/runtime/interpreter/interpreter.h +++ b/runtime/interpreter/interpreter.h @@ -30,6 +30,7 @@ class ArtMethod; union JValue; class ShadowFrame; class Thread; +enum class DeoptimizationMethodType; namespace interpreter { @@ -44,8 +45,11 @@ extern void EnterInterpreterFromInvoke(Thread* self, ArtMethod* method, REQUIRES_SHARED(Locks::mutator_lock_); // 'from_code' denotes whether the deoptimization was explicitly triggered by compiled code. -extern void EnterInterpreterFromDeoptimize(Thread* self, ShadowFrame* shadow_frame, bool from_code, - JValue* ret_val) +extern void EnterInterpreterFromDeoptimize(Thread* self, + ShadowFrame* shadow_frame, + JValue* ret_val, + bool from_code, + DeoptimizationMethodType method_type) REQUIRES_SHARED(Locks::mutator_lock_); extern JValue EnterInterpreterFromEntryPoint(Thread* self, const DexFile::CodeItem* code_item, |