summaryrefslogtreecommitdiff
path: root/deps/v8/src/interpreter/bytecode-array-accessor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/interpreter/bytecode-array-accessor.cc')
-rw-r--r--deps/v8/src/interpreter/bytecode-array-accessor.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/interpreter/bytecode-array-accessor.cc b/deps/v8/src/interpreter/bytecode-array-accessor.cc
index f597981514..64b7a219c0 100644
--- a/deps/v8/src/interpreter/bytecode-array-accessor.cc
+++ b/deps/v8/src/interpreter/bytecode-array-accessor.cc
@@ -159,6 +159,14 @@ Runtime::FunctionId BytecodeArrayAccessor::GetRuntimeIdOperand(
return static_cast<Runtime::FunctionId>(raw_id);
}
+uint32_t BytecodeArrayAccessor::GetNativeContextIndexOperand(
+ int operand_index) const {
+ OperandType operand_type =
+ Bytecodes::GetOperandType(current_bytecode(), operand_index);
+ DCHECK(operand_type == OperandType::kNativeContextIndex);
+ return GetUnsignedOperand(operand_index, operand_type);
+}
+
Runtime::FunctionId BytecodeArrayAccessor::GetIntrinsicIdOperand(
int operand_index) const {
OperandType operand_type =