| Index: src/compiler/raw-machine-assembler.cc
|
| diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc
|
| index 623d5a2ed3bf84408c3d32db6184b4459bcb8c9e..881d2a012eb0dbcadac73723ed4eb2a03e2f62b1 100644
|
| --- a/src/compiler/raw-machine-assembler.cc
|
| +++ b/src/compiler/raw-machine-assembler.cc
|
| @@ -179,7 +179,7 @@ Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver,
|
|
|
|
|
| Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function,
|
| - Node* arg0, Node* context,
|
| + Node* arg1, Node* context,
|
| Node* frame_state) {
|
| CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
|
| zone(), function, 1, Operator::kNoProperties);
|
| @@ -189,7 +189,7 @@ Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function,
|
| common()->ExternalConstant(ExternalReference(function, isolate())));
|
| Node* arity = Int32Constant(1);
|
|
|
| - Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg0, ref,
|
| + Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg1, ref,
|
| arity, context, frame_state, graph()->start(),
|
| graph()->start());
|
| schedule()->AddNode(CurrentBlock(), call);
|
| @@ -197,6 +197,25 @@ Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function,
|
| }
|
|
|
|
|
| +Node* RawMachineAssembler::CallRuntime2(Runtime::FunctionId function,
|
| + Node* arg1, Node* arg2, Node* context,
|
| + Node* frame_state) {
|
| + CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
|
| + zone(), function, 2, Operator::kNoProperties);
|
| +
|
| + Node* centry = HeapConstant(CEntryStub(isolate(), 1).GetCode());
|
| + Node* ref = NewNode(
|
| + common()->ExternalConstant(ExternalReference(function, isolate())));
|
| + Node* arity = Int32Constant(2);
|
| +
|
| + Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg1, arg2,
|
| + ref, arity, context, frame_state,
|
| + graph()->start(), graph()->start());
|
| + schedule()->AddNode(CurrentBlock(), call);
|
| + return call;
|
| +}
|
| +
|
| +
|
| Node* RawMachineAssembler::CallCFunction0(MachineType return_type,
|
| Node* function) {
|
| MachineSignature::Builder builder(zone(), 1, 0);
|
|
|