Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index 4a65a44385d87f1b193a7171184cfb2f9121694f..0d4b8cb20079b0e28fd45fa435c6b48611e99709 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -152,6 +152,19 @@ Node* RawMachineAssembler::CallNWithFrameState(CallDescriptor* desc, |
return AddNode(common()->Call(desc), input_count, buffer); |
} |
+Node* RawMachineAssembler::CallRuntime0(Runtime::FunctionId function, |
+ Node* context) { |
+ CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor( |
+ zone(), function, 0, Operator::kNoProperties, CallDescriptor::kNoFlags); |
+ int return_count = static_cast<int>(descriptor->ReturnCount()); |
+ |
+ Node* centry = HeapConstant(CEntryStub(isolate(), return_count).GetCode()); |
+ Node* ref = AddNode( |
+ common()->ExternalConstant(ExternalReference(function, isolate()))); |
+ Node* arity = Int32Constant(0); |
+ |
+ return AddNode(common()->Call(descriptor), centry, ref, arity, context); |
+} |
Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function, |
Node* arg1, Node* context) { |