| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
| 6 #include "src/compiler/raw-machine-assembler.h" | 6 #include "src/compiler/raw-machine-assembler.h" |
| 7 #include "src/compiler/scheduler.h" | 7 #include "src/compiler/scheduler.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 schedule()->AddCall(CurrentBlock(), call, Use(continuation), | 90 schedule()->AddCall(CurrentBlock(), call, Use(continuation), |
| 91 Use(deoptimization)); | 91 Use(deoptimization)); |
| 92 current_block_ = NULL; | 92 current_block_ = NULL; |
| 93 return call; | 93 return call; |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function, | 97 Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function, |
| 98 Node* arg0, Label* continuation, | 98 Node* arg0, Label* continuation, |
| 99 Label* deoptimization) { | 99 Label* deoptimization) { |
| 100 CallDescriptor* descriptor = | 100 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor( |
| 101 Linkage::GetRuntimeCallDescriptor(function, 1, Operator::kNoProperties, | 101 function, 1, Operator::kNoProperties, CallDescriptor::kLazyDeoptimization, |
| 102 CallDescriptor::kCanDeoptimize, zone()); | 102 zone()); |
| 103 | 103 |
| 104 Node* centry = HeapConstant(CEntryStub(isolate(), 1).GetCode()); | 104 Node* centry = HeapConstant(CEntryStub(isolate(), 1).GetCode()); |
| 105 Node* ref = NewNode( | 105 Node* ref = NewNode( |
| 106 common()->ExternalConstant(ExternalReference(function, isolate()))); | 106 common()->ExternalConstant(ExternalReference(function, isolate()))); |
| 107 Node* arity = Int32Constant(1); | 107 Node* arity = Int32Constant(1); |
| 108 Node* context = Parameter(1); | 108 Node* context = Parameter(1); |
| 109 | 109 |
| 110 Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg0, ref, | 110 Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg0, ref, |
| 111 arity, context); | 111 arity, context); |
| 112 schedule()->AddCall(CurrentBlock(), call, Use(continuation), | 112 schedule()->AddCall(CurrentBlock(), call, Use(continuation), |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 Node* node = graph()->NewNode(op, input_count, inputs); | 149 Node* node = graph()->NewNode(op, input_count, inputs); |
| 150 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start() | 150 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start() |
| 151 : CurrentBlock(); | 151 : CurrentBlock(); |
| 152 schedule()->AddNode(block, node); | 152 schedule()->AddNode(block, node); |
| 153 return node; | 153 return node; |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace compiler | 156 } // namespace compiler |
| 157 } // namespace internal | 157 } // namespace internal |
| 158 } // namespace v8 | 158 } // namespace v8 |
| OLD | NEW |