Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index de57a8a9d96e59376da5c914b615faa8cfd74022..eb9fb1dfb8c4ec8d9f0009b5e65541981ad9498b 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -431,6 +431,9 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::LoadContextSlot(Register context, |
if (FitsInIdx8Operand(slot_index)) { |
Output(Bytecode::kLdaContextSlot, context.ToOperand(), |
static_cast<uint8_t>(slot_index)); |
+ } else if (FitsInIdx16Operand(slot_index)) { |
+ Output(Bytecode::kLdaContextSlotWide, context.ToOperand(), |
+ static_cast<uint16_t>(slot_index)); |
} else { |
UNIMPLEMENTED(); |
} |
@@ -444,6 +447,9 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::StoreContextSlot(Register context, |
if (FitsInIdx8Operand(slot_index)) { |
Output(Bytecode::kStaContextSlot, context.ToOperand(), |
static_cast<uint8_t>(slot_index)); |
+ } else if (FitsInIdx16Operand(slot_index)) { |
+ Output(Bytecode::kStaContextSlotWide, context.ToOperand(), |
+ static_cast<uint16_t>(slot_index)); |
} else { |
UNIMPLEMENTED(); |
} |