Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: src/compiler/graph-assembler.cc

Issue 2797993006: [turbofan] Add type to the allocation operator. (Closed)
Patch Set: Remove caching Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698