Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 9bc634ef94cd538b541186177e19c56c5b30e53e..c67e4c9161f009fd07ffc2c4ea35c50862aedad9 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -456,6 +456,18 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::Call(Register callable, |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime( |
+ Runtime::FunctionId function_id, Register first_arg, size_t arg_count) { |
+ if (FitsInIdxOperand(function_id) && FitsInIdxOperand(arg_count)) { |
+ Output(Bytecode::kCallRuntime, static_cast<uint8_t>(function_id), |
+ first_arg.ToOperand(), static_cast<uint8_t>(arg_count)); |
+ } else { |
+ UNIMPLEMENTED(); |
+ } |
+ return *this; |
+} |
+ |
+ |
size_t BytecodeArrayBuilder::GetConstantPoolEntry(Handle<Object> object) { |
// These constants shouldn't be added to the constant pool, the should use |
// specialzed bytecodes instead. |