Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index 18f86dbfed0e4ff64a24b79e659f4e0bae0a4961..3b4a9aca3ccfd2acf8ea89bfc914f65d6b6eda1c 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -76,17 +76,8 @@ void RawMachineAssembler::Return(Node* value) { |
} |
-void RawMachineAssembler::Deoptimize(Node* state) { |
- Node* deopt = graph()->NewNode(common()->Deoptimize(), state); |
- schedule()->AddDeoptimize(CurrentBlock(), deopt); |
- current_block_ = NULL; |
-} |
- |
- |
Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver, |
Node* context, Node* frame_state, |
- Label* continuation, |
- Label* deoptimization, |
CallFunctionFlags flags) { |
CallFunctionStub stub(isolate(), 0, flags); |
CodeStubInterfaceDescriptor* d = isolate()->code_stub_interface_descriptor( |
@@ -94,35 +85,29 @@ Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver, |
stub.InitializeInterfaceDescriptor(d); |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
- d, 1, |
- CallDescriptor::kLazyDeoptimization | CallDescriptor::kNeedsFrameState, |
- zone()); |
+ d, 1, CallDescriptor::kNeedsFrameState, zone()); |
Node* stub_code = HeapConstant(stub.GetCode()); |
Node* call = graph()->NewNode(common()->Call(desc), stub_code, function, |
receiver, context, frame_state); |
- schedule()->AddCall(CurrentBlock(), call, Use(continuation), |
- Use(deoptimization)); |
- current_block_ = NULL; |
+ schedule()->AddNode(CurrentBlock(), call); |
return call; |
} |
Node* RawMachineAssembler::CallJS0(Node* function, Node* receiver, |
- Label* continuation, Label* deoptimization) { |
+ Node* frame_state) { |
CallDescriptor* descriptor = Linkage::GetJSCallDescriptor(1, zone()); |
- Node* call = graph()->NewNode(common()->Call(descriptor), function, receiver); |
- schedule()->AddCall(CurrentBlock(), call, Use(continuation), |
- Use(deoptimization)); |
- current_block_ = NULL; |
+ Node* call = graph()->NewNode(common()->Call(descriptor), function, receiver, |
+ frame_state); |
+ schedule()->AddNode(CurrentBlock(), call); |
return call; |
} |
Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function, |
- Node* arg0, Label* continuation, |
- Label* deoptimization) { |
+ Node* arg0, Node* frame_state) { |
CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor( |
- function, 1, Operator::kNoProperties, CallDescriptor::kLazyDeoptimization, |
+ function, 1, Operator::kNoProperties, CallDescriptor::kNeedsFrameState, |
zone()); |
Node* centry = HeapConstant(CEntryStub(isolate(), 1).GetCode()); |
@@ -132,10 +117,8 @@ Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function, |
Node* context = Parameter(1); |
Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg0, ref, |
- arity, context); |
- schedule()->AddCall(CurrentBlock(), call, Use(continuation), |
- Use(deoptimization)); |
- current_block_ = NULL; |
+ arity, context, frame_state); |
+ schedule()->AddNode(CurrentBlock(), call); |
return call; |
} |