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

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

Issue 727743002: Revert "[turbofan] Smartify the GraphReducer." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/zone-containers.h ('k') | test/cctest/compiler/test-graph-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 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 <limits> 5 #include <limits>
6 6
7 #include "src/compiler/change-lowering.h" 7 #include "src/compiler/change-lowering.h"
8 #include "src/compiler/control-builders.h" 8 #include "src/compiler/control-builders.h"
9 #include "src/compiler/generic-node-inl.h" 9 #include "src/compiler/generic-node-inl.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 this->graph()->SetEnd(end); 122 this->graph()->SetEnd(end);
123 LowerChange(change); 123 LowerChange(change);
124 } 124 }
125 125
126 void LowerChange(Node* change) { 126 void LowerChange(Node* change) {
127 // Run the graph reducer with changes lowering on a single node. 127 // Run the graph reducer with changes lowering on a single node.
128 CompilationInfo info(this->isolate(), this->zone()); 128 CompilationInfo info(this->isolate(), this->zone());
129 Linkage linkage(this->zone(), &info); 129 Linkage linkage(this->zone(), &info);
130 ChangeLowering change_lowering(&jsgraph, &linkage); 130 ChangeLowering change_lowering(&jsgraph, &linkage);
131 SelectLowering select_lowering(this->graph(), this->common()); 131 SelectLowering select_lowering(this->graph(), this->common());
132 GraphReducer reducer(this->graph(), this->zone()); 132 GraphReducer reducer(this->graph());
133 reducer.AddReducer(&change_lowering); 133 reducer.AddReducer(&change_lowering);
134 reducer.AddReducer(&select_lowering); 134 reducer.AddReducer(&select_lowering);
135 reducer.ReduceNode(change); 135 reducer.ReduceNode(change);
136 Verifier::Run(this->graph(), Verifier::UNTYPED); 136 Verifier::Run(this->graph(), Verifier::UNTYPED);
137 } 137 }
138 138
139 Factory* factory() { return this->isolate()->factory(); } 139 Factory* factory() { return this->isolate()->factory(); }
140 Heap* heap() { return this->isolate()->heap(); } 140 Heap* heap() { return this->isolate()->heap(); }
141 }; 141 };
142 142
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 input = *i; 387 input = *i;
388 Object* result = t.CallWithPotentialGC<Object>(); 388 Object* result = t.CallWithPotentialGC<Object>();
389 t.CheckNumber(input, result); 389 t.CheckNumber(input, result);
390 } 390 }
391 } 391 }
392 } 392 }
393 } 393 }
394 394
395 #endif // V8_TURBOFAN_BACKEND 395 #endif // V8_TURBOFAN_BACKEND
OLDNEW
« no previous file with comments | « src/zone-containers.h ('k') | test/cctest/compiler/test-graph-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698