diff options
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl.cc')
| -rw-r--r-- | runtime/interpreter/interpreter_switch_impl.cc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl.cc b/runtime/interpreter/interpreter_switch_impl.cc index 80401977cd..78090bbe0c 100644 --- a/runtime/interpreter/interpreter_switch_impl.cc +++ b/runtime/interpreter/interpreter_switch_impl.cc @@ -2245,7 +2245,7 @@ JValue ExecuteSwitchImpl(Thread* self, const DexFile::CodeItem* code_item, } case Instruction::UNUSED_F4: case Instruction::UNUSED_F5: - case Instruction::UNUSED_F7 ... Instruction::UNUSED_F9: { + case Instruction::UNUSED_F7: { if (!IsExperimentalInstructionEnabled(inst)) { UnexpectedOpcode(inst, shadow_frame); } @@ -2253,6 +2253,26 @@ JValue ExecuteSwitchImpl(Thread* self, const DexFile::CodeItem* code_item, CHECK(false); // TODO(iam): Implement opcodes for lambdas break; } + case Instruction::BOX_LAMBDA: { + if (!IsExperimentalInstructionEnabled(inst)) { + UnexpectedOpcode(inst, shadow_frame); + } + + PREAMBLE(); + bool success = DoBoxLambda<do_access_check>(self, shadow_frame, inst, inst_data); + POSSIBLY_HANDLE_PENDING_EXCEPTION(!success, Next_2xx); + break; + } + case Instruction::UNBOX_LAMBDA: { + if (!IsExperimentalInstructionEnabled(inst)) { + UnexpectedOpcode(inst, shadow_frame); + } + + PREAMBLE(); + bool success = DoUnboxLambda<do_access_check>(self, shadow_frame, inst, inst_data); + POSSIBLY_HANDLE_PENDING_EXCEPTION(!success, Next_2xx); + break; + } case Instruction::UNUSED_3E ... Instruction::UNUSED_43: case Instruction::UNUSED_FA ... Instruction::UNUSED_FF: case Instruction::UNUSED_79: |