diff options
author | 2023-01-06 16:44:38 +0000 | |
---|---|---|
committer | 2023-01-17 09:20:34 +0000 | |
commit | 9e3761d6b98e090cff2e30e0f5e9714f434dd0f2 (patch) | |
tree | 9fba285742b0658a623dd42c14f9241cceb7ba18 /runtime/interpreter/unstarted_runtime_test.cc | |
parent | 9ab12375de1b61ebfa924a6fbff7428e3b54d1f1 (diff) |
Remove one template argument to the switch interpreter.
Dynamically check for SkipAccessChecks instead.
arm64 apex goes from 49545216 bytes to 49324032, ~200KB savings.
Test: test.py
Change-Id: Iaa64f56485b15c0e3c0eaa31e469a2795035debe
Diffstat (limited to 'runtime/interpreter/unstarted_runtime_test.cc')
-rw-r--r-- | runtime/interpreter/unstarted_runtime_test.cc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/runtime/interpreter/unstarted_runtime_test.cc b/runtime/interpreter/unstarted_runtime_test.cc index dfda20a818..3227ef7d76 100644 --- a/runtime/interpreter/unstarted_runtime_test.cc +++ b/runtime/interpreter/unstarted_runtime_test.cc @@ -415,13 +415,13 @@ TEST_F(UnstartedRuntimeTest, StringInit) { shadow_frame->SetVRegReference(1, string_arg.Get()); ArtMethod* factory = WellKnownClasses::StringInitToStringFactory(method); - interpreter::DoCall<false, false>(factory, - self, - *shadow_frame, - Instruction::At(inst_data), - inst_data[0], - /* string_init= */ true, - &result); + interpreter::DoCall<false>(factory, + self, + *shadow_frame, + Instruction::At(inst_data), + inst_data[0], + /* string_init= */ true, + &result); ObjPtr<mirror::String> string_result = down_cast<mirror::String*>(result.GetL()); EXPECT_EQ(string_arg->GetLength(), string_result->GetLength()); @@ -1015,13 +1015,13 @@ TEST_F(UnstartedRuntimeTest, FloatConversion) { UniqueDeoptShadowFramePtr shadow_frame = CreateShadowFrame(10, method, 0); shadow_frame->SetVRegDouble(0, 1.23); - interpreter::DoCall<false, false>(method, - self, - *shadow_frame, - Instruction::At(inst_data), - inst_data[0], - /* string_init= */ false, - &result); + interpreter::DoCall<false>(method, + self, + *shadow_frame, + Instruction::At(inst_data), + inst_data[0], + /* string_init= */ false, + &result); ObjPtr<mirror::String> string_result = down_cast<mirror::String*>(result.GetL()); ASSERT_TRUE(string_result != nullptr); @@ -1173,13 +1173,13 @@ class UnstartedClassForNameTest : public UnstartedRuntimeTest { // create instruction data for invoke-direct {v0} of method with fake index uint16_t inst_data[3] = { 0x1070, 0x0000, 0x0010 }; - interpreter::DoCall<false, false>(boot_cp_init, - self, - *shadow_frame, - Instruction::At(inst_data), - inst_data[0], - /* string_init= */ false, - &result); + interpreter::DoCall<false>(boot_cp_init, + self, + *shadow_frame, + Instruction::At(inst_data), + inst_data[0], + /* string_init= */ false, + &result); CHECK(!self->IsExceptionPending()); } |