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 a669808335c9cc4f8405ef053dcb2263a5c6f53f..b9c3476128cd098df3927211c99d483d1e6a9d22 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -802,6 +802,7 @@ void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) { |
ArmOperandConverter i(this, instr); |
Register input = i.InputRegister(0); |
size_t const case_count = instr->InputCount() - 2; |
+ __ CheckConstPool(true, true); |
__ cmp(input, Operand(case_count)); |
__ BlockConstPoolFor(case_count + 2); |
__ ldr(pc, MemOperand(pc, input, LSL, 2), lo); |