| Index: src/compiler/arm/code-generator-arm.cc
|
| diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc
|
| index f3d2cce5c9fe2014c9cd85cf1c564aa4668be212..e2ddf462aae04c8b31b52f98f42e1143fdeaa5e3 100644
|
| --- a/src/compiler/arm/code-generator-arm.cc
|
| +++ b/src/compiler/arm/code-generator-arm.cc
|
| @@ -336,6 +336,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
|
| AssembleArchJump(i.InputRpo(0));
|
| DCHECK_EQ(LeaveCC, i.OutputSBit());
|
| break;
|
| + case kArchSwitch:
|
| + AssembleArchSwitch(instr);
|
| + DCHECK_EQ(LeaveCC, i.OutputSBit());
|
| + break;
|
| case kArchNop:
|
| // don't emit code for nops.
|
| DCHECK_EQ(LeaveCC, i.OutputSBit());
|
| @@ -737,6 +741,18 @@ void CodeGenerator::AssembleArchJump(BasicBlock::RpoNumber target) {
|
| }
|
|
|
|
|
| +void CodeGenerator::AssembleArchSwitch(Instruction* instr) {
|
| + ArmOperandConverter i(this, instr);
|
| + int const kNumLabels = static_cast<int>(instr->InputCount() - 1);
|
| + __ BlockConstPoolFor(kNumLabels + 2);
|
| + __ ldr(pc, MemOperand(pc, i.InputRegister(0), LSL, 2));
|
| + __ nop();
|
| + for (int index = 0; index < kNumLabels; ++index) {
|
| + __ dd(GetLabel(i.InputRpo(index + 1)));
|
| + }
|
| +}
|
| +
|
| +
|
| // Assembles boolean materializations after an instruction.
|
| void CodeGenerator::AssembleArchBoolean(Instruction* instr,
|
| FlagsCondition condition) {
|
| @@ -1009,6 +1025,12 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source,
|
| }
|
|
|
|
|
| +void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) {
|
| + // On 32-bit ARM we emit the jump tables inline.
|
| + UNREACHABLE();
|
| +}
|
| +
|
| +
|
| void CodeGenerator::AddNopForSmiCodeInlining() {
|
| // On 32-bit ARM we do not insert nops for inlined Smi code.
|
| }
|
|
|