Chromium Code Reviews| 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/raw-machine-assembler.h" | 5 #include "src/compiler/raw-machine-assembler.h" |
| 6 | 6 |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 #include "src/compiler/pipeline.h" | 8 #include "src/compiler/pipeline.h" |
| 9 #include "src/compiler/scheduler.h" | 9 #include "src/compiler/scheduler.h" |
| 10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 os << *schedule_; | 58 os << *schedule_; |
| 59 } | 59 } |
| 60 // Invalidate RawMachineAssembler. | 60 // Invalidate RawMachineAssembler. |
| 61 Schedule* schedule = schedule_; | 61 Schedule* schedule = schedule_; |
| 62 schedule_ = nullptr; | 62 schedule_ = nullptr; |
| 63 return schedule; | 63 return schedule; |
| 64 } | 64 } |
| 65 | 65 |
| 66 | 66 |
| 67 Node* RawMachineAssembler::Parameter(size_t index) { | 67 Node* RawMachineAssembler::Parameter(size_t index) { |
| 68 DCHECK(index < parameter_count()); | 68 DCHECK_LT(index, parameter_count()); |
|
Benedikt Meurer
2017/01/18 18:10:40
Same, please don't do this in this CL.
Camillo Bruni
2017/01/24 15:51:43
excluded.
| |
| 69 return parameters_[index]; | 69 return parameters_[index]; |
| 70 } | 70 } |
| 71 | 71 |
| 72 | 72 |
| 73 void RawMachineAssembler::Goto(RawMachineLabel* label) { | 73 void RawMachineAssembler::Goto(RawMachineLabel* label) { |
| 74 DCHECK(current_block_ != schedule()->end()); | 74 DCHECK(current_block_ != schedule()->end()); |
| 75 schedule()->AddGoto(CurrentBlock(), Use(label)); | 75 schedule()->AddGoto(CurrentBlock(), Use(label)); |
| 76 current_block_ = nullptr; | 76 current_block_ = nullptr; |
| 77 } | 77 } |
| 78 | 78 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 330 // The raw machine assembler nodes do not have effect and control inputs, | 330 // The raw machine assembler nodes do not have effect and control inputs, |
| 331 // so we disable checking input counts here. | 331 // so we disable checking input counts here. |
| 332 return graph()->NewNodeUnchecked(op, input_count, inputs); | 332 return graph()->NewNodeUnchecked(op, input_count, inputs); |
| 333 } | 333 } |
| 334 | 334 |
| 335 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } | 335 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } |
| 336 | 336 |
| 337 } // namespace compiler | 337 } // namespace compiler |
| 338 } // namespace internal | 338 } // namespace internal |
| 339 } // namespace v8 | 339 } // namespace v8 |
| OLD | NEW |