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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 return nullptr; | 93 return nullptr; |
94 } | 94 } |
95 | 95 |
96 Node* GraphAssembler::Projection(int index, Node* value) { | 96 Node* GraphAssembler::Projection(int index, Node* value) { |
97 return graph()->NewNode(common()->Projection(index), value, current_control_); | 97 return graph()->NewNode(common()->Projection(index), value, current_control_); |
98 } | 98 } |
99 | 99 |
100 Node* GraphAssembler::Allocate(PretenureFlag pretenure, Node* size) { | 100 Node* GraphAssembler::Allocate(PretenureFlag pretenure, Node* size) { |
101 return current_effect_ = | 101 return current_effect_ = |
102 graph()->NewNode(simplified()->Allocate(NOT_TENURED), size, | 102 graph()->NewNode(simplified()->Allocate(Type::Any(), NOT_TENURED), |
103 current_effect_, current_control_); | 103 size, current_effect_, current_control_); |
104 } | 104 } |
105 | 105 |
106 Node* GraphAssembler::LoadField(FieldAccess const& access, Node* object) { | 106 Node* GraphAssembler::LoadField(FieldAccess const& access, Node* object) { |
107 return current_effect_ = | 107 return current_effect_ = |
108 graph()->NewNode(simplified()->LoadField(access), object, | 108 graph()->NewNode(simplified()->LoadField(access), object, |
109 current_effect_, current_control_); | 109 current_effect_, current_control_); |
110 } | 110 } |
111 | 111 |
112 Node* GraphAssembler::LoadElement(ElementAccess const& access, Node* object, | 112 Node* GraphAssembler::LoadElement(ElementAccess const& access, Node* object, |
113 Node* index) { | 113 Node* index) { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 return representations_[phi_index]; | 290 return representations_[phi_index]; |
291 } | 291 } |
292 | 292 |
293 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; } | 293 Node** GraphAssemblerLabel::GetControlsPtr() { return controls_; } |
294 | 294 |
295 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; } | 295 Node** GraphAssemblerLabel::GetEffectsPtr() { return effects_; } |
296 | 296 |
297 } // namespace compiler | 297 } // namespace compiler |
298 } // namespace internal | 298 } // namespace internal |
299 } // namespace v8 | 299 } // namespace v8 |
OLD | NEW |