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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 Isolate* isolate() const { return zone()->isolate(); } | 52 Isolate* isolate() const { return zone()->isolate(); } |
53 Zone* zone() const { return graph()->zone(); } | 53 Zone* zone() const { return graph()->zone(); } |
54 MachineOperatorBuilder* machine() { return &machine_; } | 54 MachineOperatorBuilder* machine() { return &machine_; } |
55 CommonOperatorBuilder* common() { return &common_; } | 55 CommonOperatorBuilder* common() { return &common_; } |
56 CallDescriptor* call_descriptor() const { return call_descriptor_; } | 56 CallDescriptor* call_descriptor() const { return call_descriptor_; } |
57 size_t parameter_count() const { return machine_sig_->parameter_count(); } | 57 size_t parameter_count() const { return machine_sig_->parameter_count(); } |
58 MachineSignature* machine_sig() const { return machine_sig_; } | 58 MachineSignature* machine_sig() const { return machine_sig_; } |
59 | 59 |
60 Node* UndefinedConstant() { | 60 Node* UndefinedConstant() { |
61 PrintableUnique<Object> unique = PrintableUnique<Object>::CreateImmovable( | 61 Unique<Object> unique = Unique<Object>::CreateImmovable( |
62 zone(), isolate()->factory()->undefined_value()); | 62 isolate()->factory()->undefined_value()); |
63 return NewNode(common()->HeapConstant(unique)); | 63 return NewNode(common()->HeapConstant(unique)); |
64 } | 64 } |
65 | 65 |
66 // Parameters. | 66 // Parameters. |
67 Node* Parameter(size_t index); | 67 Node* Parameter(size_t index); |
68 | 68 |
69 // Control flow. | 69 // Control flow. |
70 Label* Exit(); | 70 Label* Exit(); |
71 void Goto(Label* label); | 71 void Goto(Label* label); |
72 void Branch(Node* condition, Label* true_val, Label* false_val); | 72 void Branch(Node* condition, Label* true_val, Label* false_val); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 BasicBlock* current_block_; | 120 BasicBlock* current_block_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 122 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace compiler | 125 } // namespace compiler |
126 } // namespace internal | 126 } // namespace internal |
127 } // namespace v8 | 127 } // namespace v8 |
128 | 128 |
129 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 129 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |