| 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_RAW_MACHINE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 6 #define V8_COMPILER_RAW_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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 BasicBlock* block_; | 41 BasicBlock* block_; |
| 42 bool used_; | 42 bool used_; |
| 43 bool bound_; | 43 bool bound_; |
| 44 friend class RawMachineAssembler; | 44 friend class RawMachineAssembler; |
| 45 DISALLOW_COPY_AND_ASSIGN(Label); | 45 DISALLOW_COPY_AND_ASSIGN(Label); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 RawMachineAssembler(Graph* graph, | 48 RawMachineAssembler(Graph* graph, |
| 49 MachineCallDescriptorBuilder* call_descriptor_builder, | 49 MachineCallDescriptorBuilder* call_descriptor_builder, |
| 50 MachineType word = MachineOperatorBuilder::pointer_rep()); | 50 MachineType word = kMachPtr); |
| 51 virtual ~RawMachineAssembler() {} | 51 virtual ~RawMachineAssembler() {} |
| 52 | 52 |
| 53 Isolate* isolate() const { return zone()->isolate(); } | 53 Isolate* isolate() const { return zone()->isolate(); } |
| 54 Zone* zone() const { return graph()->zone(); } | 54 Zone* zone() const { return graph()->zone(); } |
| 55 MachineOperatorBuilder* machine() { return &machine_; } | 55 MachineOperatorBuilder* machine() { return &machine_; } |
| 56 CommonOperatorBuilder* common() { return &common_; } | 56 CommonOperatorBuilder* common() { return &common_; } |
| 57 CallDescriptor* call_descriptor() const { | 57 CallDescriptor* call_descriptor() const { |
| 58 return call_descriptor_builder_->BuildCallDescriptor(zone()); | 58 return call_descriptor_builder_->BuildCallDescriptor(zone()); |
| 59 } | 59 } |
| 60 int parameter_count() const { | 60 int parameter_count() const { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 BasicBlock* current_block_; | 121 BasicBlock* current_block_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 123 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace compiler | 126 } // namespace compiler |
| 127 } // namespace internal | 127 } // namespace internal |
| 128 } // namespace v8 | 128 } // namespace v8 |
| 129 | 129 |
| 130 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 130 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |