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_MACHINE_NODE_FACTORY_H_ | 5 #ifndef V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ | 6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
7 | 7 |
8 #ifdef USE_SIMULATOR | 8 #ifdef USE_SIMULATOR |
9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 | 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 |
10 #else | 10 #else |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 Node* Int64Constant(int64_t value) { | 48 Node* Int64Constant(int64_t value) { |
49 return NEW_NODE_0(COMMON()->Int64Constant(value)); | 49 return NEW_NODE_0(COMMON()->Int64Constant(value)); |
50 } | 50 } |
51 Node* NumberConstant(double value) { | 51 Node* NumberConstant(double value) { |
52 return NEW_NODE_0(COMMON()->NumberConstant(value)); | 52 return NEW_NODE_0(COMMON()->NumberConstant(value)); |
53 } | 53 } |
54 Node* Float64Constant(double value) { | 54 Node* Float64Constant(double value) { |
55 return NEW_NODE_0(COMMON()->Float64Constant(value)); | 55 return NEW_NODE_0(COMMON()->Float64Constant(value)); |
56 } | 56 } |
57 Node* HeapConstant(Handle<Object> object) { | 57 Node* HeapConstant(Handle<Object> object) { |
58 PrintableUnique<Object> val = | 58 Unique<Object> val = Unique<Object>::CreateUninitialized(object); |
59 PrintableUnique<Object>::CreateUninitialized(ZONE(), object); | |
60 return NEW_NODE_0(COMMON()->HeapConstant(val)); | 59 return NEW_NODE_0(COMMON()->HeapConstant(val)); |
61 } | 60 } |
62 | 61 |
63 Node* Projection(int index, Node* a) { | 62 Node* Projection(int index, Node* a) { |
64 return NEW_NODE_1(COMMON()->Projection(index), a); | 63 return NEW_NODE_1(COMMON()->Projection(index), a); |
65 } | 64 } |
66 | 65 |
67 // Memory Operations. | 66 // Memory Operations. |
68 Node* Load(MachineType rep, Node* base) { | 67 Node* Load(MachineType rep, Node* base) { |
69 return Load(rep, base, Int32Constant(0)); | 68 return Load(rep, base, Int32Constant(0)); |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 #undef NEW_NODE_3 | 365 #undef NEW_NODE_3 |
367 #undef MACHINE | 366 #undef MACHINE |
368 #undef COMMON | 367 #undef COMMON |
369 #undef ZONE | 368 #undef ZONE |
370 | 369 |
371 } // namespace compiler | 370 } // namespace compiler |
372 } // namespace internal | 371 } // namespace internal |
373 } // namespace v8 | 372 } // namespace v8 |
374 | 373 |
375 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ | 374 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
OLD | NEW |