| 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 #ifndef V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ | 6 #define V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 DISALLOW_COPY_AND_ASSIGN(Environment); | 56 DISALLOW_COPY_AND_ASSIGN(Environment); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class IfBuilder; | 59 class IfBuilder; |
| 60 friend class IfBuilder; | 60 friend class IfBuilder; |
| 61 class LoopBuilder; | 61 class LoopBuilder; |
| 62 friend class LoopBuilder; | 62 friend class LoopBuilder; |
| 63 | 63 |
| 64 StructuredMachineAssembler( | 64 StructuredMachineAssembler( |
| 65 Graph* graph, MachineCallDescriptorBuilder* call_descriptor_builder, | 65 Graph* graph, MachineCallDescriptorBuilder* call_descriptor_builder, |
| 66 MachineType word = MachineOperatorBuilder::pointer_rep()); | 66 MachineType word = kMachPtr); |
| 67 virtual ~StructuredMachineAssembler() {} | 67 virtual ~StructuredMachineAssembler() {} |
| 68 | 68 |
| 69 Isolate* isolate() const { return zone()->isolate(); } | 69 Isolate* isolate() const { return zone()->isolate(); } |
| 70 Zone* zone() const { return graph()->zone(); } | 70 Zone* zone() const { return graph()->zone(); } |
| 71 MachineOperatorBuilder* machine() { return &machine_; } | 71 MachineOperatorBuilder* machine() { return &machine_; } |
| 72 CommonOperatorBuilder* common() { return &common_; } | 72 CommonOperatorBuilder* common() { return &common_; } |
| 73 CallDescriptor* call_descriptor() const { | 73 CallDescriptor* call_descriptor() const { |
| 74 return call_descriptor_builder_->BuildCallDescriptor(zone()); | 74 return call_descriptor_builder_->BuildCallDescriptor(zone()); |
| 75 } | 75 } |
| 76 int parameter_count() const { | 76 int parameter_count() const { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 EnvironmentVector pending_header_merges_; | 296 EnvironmentVector pending_header_merges_; |
| 297 EnvironmentVector pending_exit_merges_; | 297 EnvironmentVector pending_exit_merges_; |
| 298 DISALLOW_COPY_AND_ASSIGN(LoopBuilder); | 298 DISALLOW_COPY_AND_ASSIGN(LoopBuilder); |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace compiler | 301 } // namespace compiler |
| 302 } // namespace internal | 302 } // namespace internal |
| 303 } // namespace v8 | 303 } // namespace v8 |
| 304 | 304 |
| 305 #endif // V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ | 305 #endif // V8_COMPILER_STRUCTURED_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |