OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/compiler/graph-assembler.h" | 5 #include "src/compiler/graph-assembler.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 | 50 |
51 Node* GraphAssembler::ExternalConstant(ExternalReference ref) { | 51 Node* GraphAssembler::ExternalConstant(ExternalReference ref) { |
52 return jsgraph()->ExternalConstant(ref); | 52 return jsgraph()->ExternalConstant(ref); |
53 } | 53 } |
54 | 54 |
55 Node* GraphAssembler::CEntryStubConstant(int result_size) { | 55 Node* GraphAssembler::CEntryStubConstant(int result_size) { |
56 return jsgraph()->CEntryStubConstant(result_size); | 56 return jsgraph()->CEntryStubConstant(result_size); |
57 } | 57 } |
58 | 58 |
| 59 Node* GraphAssembler::LoadFramePointer() { |
| 60 return graph()->NewNode(machine()->LoadFramePointer()); |
| 61 } |
| 62 |
59 #define SINGLETON_CONST_DEF(Name) \ | 63 #define SINGLETON_CONST_DEF(Name) \ |
60 Node* GraphAssembler::Name() { return jsgraph()->Name(); } | 64 Node* GraphAssembler::Name() { return jsgraph()->Name(); } |
61 JSGRAPH_SINGLETON_CONSTANT_LIST(SINGLETON_CONST_DEF) | 65 JSGRAPH_SINGLETON_CONSTANT_LIST(SINGLETON_CONST_DEF) |
62 #undef SINGLETON_CONST_DEF | 66 #undef SINGLETON_CONST_DEF |
63 | 67 |
64 #define PURE_UNOP_DEF(Name) \ | 68 #define PURE_UNOP_DEF(Name) \ |
65 Node* GraphAssembler::Name(Node* input) { \ | 69 Node* GraphAssembler::Name(Node* input) { \ |
66 return graph()->NewNode(machine()->Name(), input); \ | 70 return graph()->NewNode(machine()->Name(), input); \ |
67 } | 71 } |
68 PURE_ASSEMBLER_MACH_UNOP_LIST(PURE_UNOP_DEF) | 72 PURE_ASSEMBLER_MACH_UNOP_LIST(PURE_UNOP_DEF) |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 return representations_[phi_index]; | 290 return representations_[phi_index]; |
287 } | 291 } |
288 | 292 |
289 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; } | 293 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; } |
290 | 294 |
291 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; } | 295 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; } |
292 | 296 |
293 } // namespace compiler | 297 } // namespace compiler |
294 } // namespace internal | 298 } // namespace internal |
295 } // namespace v8 | 299 } // namespace v8 |
OLD | NEW |