| 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/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
| 9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
| 10 #include "src/compiler/scheduler.h" | 10 #include "src/compiler/scheduler.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 namespace compiler { | 14 namespace compiler { |
| 15 | 15 |
| 16 RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph, | 16 RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph, |
| 17 CallDescriptor* call_descriptor, | 17 CallDescriptor* call_descriptor, |
| 18 MachineType word, | 18 MachineRepresentation word, |
| 19 MachineOperatorBuilder::Flags flags) | 19 MachineOperatorBuilder::Flags flags) |
| 20 : isolate_(isolate), | 20 : isolate_(isolate), |
| 21 graph_(graph), | 21 graph_(graph), |
| 22 schedule_(new (zone()) Schedule(zone())), | 22 schedule_(new (zone()) Schedule(zone())), |
| 23 machine_(zone(), word, flags), | 23 machine_(zone(), word, flags), |
| 24 common_(zone()), | 24 common_(zone()), |
| 25 call_descriptor_(call_descriptor), | 25 call_descriptor_(call_descriptor), |
| 26 parameters_(parameter_count(), zone()), | 26 parameters_(parameter_count(), zone()), |
| 27 current_block_(schedule()->start()) { | 27 current_block_(schedule()->start()) { |
| 28 int param_count = static_cast<int>(parameter_count()); | 28 int param_count = static_cast<int>(parameter_count()); |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 RawMachineLabel::RawMachineLabel() | 391 RawMachineLabel::RawMachineLabel() |
| 392 : block_(NULL), used_(false), bound_(false) {} | 392 : block_(NULL), used_(false), bound_(false) {} |
| 393 | 393 |
| 394 | 394 |
| 395 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } | 395 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } |
| 396 | 396 |
| 397 } // namespace compiler | 397 } // namespace compiler |
| 398 } // namespace internal | 398 } // namespace internal |
| 399 } // namespace v8 | 399 } // namespace v8 |
| OLD | NEW |