summaryrefslogtreecommitdiff
path: root/chromium/v8/src/interpreter/bytecode-array-builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/interpreter/bytecode-array-builder.cc')
-rw-r--r--chromium/v8/src/interpreter/bytecode-array-builder.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/v8/src/interpreter/bytecode-array-builder.cc b/chromium/v8/src/interpreter/bytecode-array-builder.cc
index 5e58f9613d3..c327fb7cd82 100644
--- a/chromium/v8/src/interpreter/bytecode-array-builder.cc
+++ b/chromium/v8/src/interpreter/bytecode-array-builder.cc
@@ -71,6 +71,12 @@ Register BytecodeArrayBuilder::Parameter(int parameter_index) const {
return Register::FromParameterIndex(parameter_index, parameter_count());
}
+Register BytecodeArrayBuilder::Local(int index) const {
+ // TODO(marja): Make a DCHECK once crbug.com/706234 is fixed.
+ CHECK_LT(index, locals_count());
+ return Register(index);
+}
+
Handle<BytecodeArray> BytecodeArrayBuilder::ToBytecodeArray(Isolate* isolate) {
DCHECK(return_seen_in_block_);
DCHECK(!bytecode_generated_);