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

Side by Side Diff: test/cctest/compiler/test-js-typed-lowering.cc

Issue 2509623002: [turbofan] Sparse representation for state values (Closed)
Patch Set: Remove the optimized_out input entirely, return nullptr when iterating Created 4 years, 1 month 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
OLDNEW
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 #include "src/compilation-dependencies.h" 5 #include "src/compilation-dependencies.h"
6 #include "src/compiler/js-graph.h" 6 #include "src/compiler/js-graph.h"
7 #include "src/compiler/js-typed-lowering.h" 7 #include "src/compiler/js-typed-lowering.h"
8 #include "src/compiler/machine-operator.h" 8 #include "src/compiler/machine-operator.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Node* UndefinedConstant() { 70 Node* UndefinedConstant() {
71 Handle<HeapObject> value = isolate->factory()->undefined_value(); 71 Handle<HeapObject> value = isolate->factory()->undefined_value();
72 return graph.NewNode(common.HeapConstant(value)); 72 return graph.NewNode(common.HeapConstant(value));
73 } 73 }
74 74
75 Node* HeapConstant(Handle<HeapObject> constant) { 75 Node* HeapConstant(Handle<HeapObject> constant) {
76 return graph.NewNode(common.HeapConstant(constant)); 76 return graph.NewNode(common.HeapConstant(constant));
77 } 77 }
78 78
79 Node* EmptyFrameState(Node* context) { 79 Node* EmptyFrameState(Node* context) {
80 Node* parameters = graph.NewNode(common.StateValues(0)); 80 Node* parameters = graph.NewNode(common.StateValues(0, 0u));
81 Node* locals = graph.NewNode(common.StateValues(0)); 81 Node* locals = graph.NewNode(common.StateValues(0, 0u));
82 Node* stack = graph.NewNode(common.StateValues(0)); 82 Node* stack = graph.NewNode(common.StateValues(0, 0u));
83 83
84 Node* state_node = graph.NewNode( 84 Node* state_node = graph.NewNode(
85 common.FrameState(BailoutId::None(), OutputFrameStateCombine::Ignore(), 85 common.FrameState(BailoutId::None(), OutputFrameStateCombine::Ignore(),
86 nullptr), 86 nullptr),
87 parameters, locals, stack, context, UndefinedConstant(), graph.start()); 87 parameters, locals, stack, context, UndefinedConstant(), graph.start());
88 88
89 return state_node; 89 return state_node;
90 } 90 }
91 91
92 Node* reduce(Node* node) { 92 Node* reduce(Node* node) {
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 CHECK_EQ(p1, r->InputAt(1)); 1240 CHECK_EQ(p1, r->InputAt(1));
1241 } 1241 }
1242 } 1242 }
1243 } 1243 }
1244 } 1244 }
1245 } 1245 }
1246 1246
1247 } // namespace compiler 1247 } // namespace compiler
1248 } // namespace internal 1248 } // namespace internal
1249 } // namespace v8 1249 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698