Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index 9e150aacfb0c751e0312d68af753e4c2e1391721..e506d352f518644ac3f1e29e4b3e3ce8e16cf026 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "src/code-factory.h" |
#include "src/compiler/pipeline.h" |
#include "src/compiler/raw-machine-assembler.h" |
#include "src/compiler/scheduler.h" |
@@ -83,11 +84,10 @@ void RawMachineAssembler::Return(Node* value) { |
Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver, |
Node* context, Node* frame_state, |
CallFunctionFlags flags) { |
- CallFunctionStub stub(isolate(), 0, flags); |
- CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); |
+ Callable callable = CodeFactory::CallFunction(isolate(), 0, flags); |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
- d, 1, CallDescriptor::kNeedsFrameState, zone()); |
- Node* stub_code = HeapConstant(stub.GetCode()); |
+ callable.descriptor(), 1, CallDescriptor::kNeedsFrameState, zone()); |
+ Node* stub_code = HeapConstant(callable.code()); |
Node* call = graph()->NewNode(common()->Call(desc), stub_code, function, |
receiver, context, frame_state); |
schedule()->AddNode(CurrentBlock(), call); |