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/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 Node* Float32Constant(float value) { | 98 Node* Float32Constant(float value) { |
99 return NewNode(common()->Float32Constant(value)); | 99 return NewNode(common()->Float32Constant(value)); |
100 } | 100 } |
101 Node* Float64Constant(double value) { | 101 Node* Float64Constant(double value) { |
102 return NewNode(common()->Float64Constant(value)); | 102 return NewNode(common()->Float64Constant(value)); |
103 } | 103 } |
104 Node* HeapConstant(Handle<HeapObject> object) { | 104 Node* HeapConstant(Handle<HeapObject> object) { |
105 Unique<HeapObject> val = Unique<HeapObject>::CreateUninitialized(object); | 105 Unique<HeapObject> val = Unique<HeapObject>::CreateUninitialized(object); |
106 return NewNode(common()->HeapConstant(val)); | 106 return NewNode(common()->HeapConstant(val)); |
107 } | 107 } |
| 108 Node* HeapConstant(Unique<HeapObject> object) { |
| 109 return NewNode(common()->HeapConstant(object)); |
| 110 } |
108 Node* ExternalConstant(ExternalReference address) { | 111 Node* ExternalConstant(ExternalReference address) { |
109 return NewNode(common()->ExternalConstant(address)); | 112 return NewNode(common()->ExternalConstant(address)); |
110 } | 113 } |
111 | 114 |
112 Node* Projection(int index, Node* a) { | 115 Node* Projection(int index, Node* a) { |
113 return NewNode(common()->Projection(index), a); | 116 return NewNode(common()->Projection(index), a); |
114 } | 117 } |
115 | 118 |
116 // Memory Operations. | 119 // Memory Operations. |
117 Node* Load(MachineType rep, Node* base) { | 120 Node* Load(MachineType rep, Node* base) { |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 BasicBlock* current_block_; | 588 BasicBlock* current_block_; |
586 | 589 |
587 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 590 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
588 }; | 591 }; |
589 | 592 |
590 } // namespace compiler | 593 } // namespace compiler |
591 } // namespace internal | 594 } // namespace internal |
592 } // namespace v8 | 595 } // namespace v8 |
593 | 596 |
594 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 597 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |