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

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

Issue 714413004: [turbofan] More useful typing for And, Or and Shr. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix the range/bitset subtyping mess-up in bitwise or. 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/typer.cc ('k') | test/unittests/compiler/change-lowering-unittest.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"
11 #include "src/compiler/node-properties-inl.h" 11 #include "src/compiler/node-properties-inl.h"
12 #include "src/compiler/pipeline.h" 12 #include "src/compiler/pipeline.h"
13 #include "src/compiler/select-lowering.h" 13 #include "src/compiler/select-lowering.h"
14 #include "src/compiler/simplified-lowering.h" 14 #include "src/compiler/simplified-lowering.h"
15 #include "src/compiler/typer.h"
15 #include "src/compiler/verifier.h" 16 #include "src/compiler/verifier.h"
16 #include "src/execution.h" 17 #include "src/execution.h"
17 #include "src/globals.h" 18 #include "src/globals.h"
18 #include "src/parser.h" 19 #include "src/parser.h"
19 #include "src/rewriter.h" 20 #include "src/rewriter.h"
20 #include "src/scopes.h" 21 #include "src/scopes.h"
21 #include "test/cctest/cctest.h" 22 #include "test/cctest/cctest.h"
22 #include "test/cctest/compiler/codegen-tester.h" 23 #include "test/cctest/compiler/codegen-tester.h"
23 #include "test/cctest/compiler/function-tester.h" 24 #include "test/cctest/compiler/function-tester.h"
24 #include "test/cctest/compiler/graph-builder-tester.h" 25 #include "test/cctest/compiler/graph-builder-tester.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 this->start(), this->start()); 121 this->start(), this->start());
121 Node* end = this->graph()->NewNode(this->common()->End(), ret); 122 Node* end = this->graph()->NewNode(this->common()->End(), ret);
122 this->graph()->SetEnd(end); 123 this->graph()->SetEnd(end);
123 LowerChange(change); 124 LowerChange(change);
124 } 125 }
125 126
126 void LowerChange(Node* change) { 127 void LowerChange(Node* change) {
127 // Run the graph reducer with changes lowering on a single node. 128 // Run the graph reducer with changes lowering on a single node.
128 CompilationInfo info(this->isolate(), this->zone()); 129 CompilationInfo info(this->isolate(), this->zone());
129 Linkage linkage(this->zone(), &info); 130 Linkage linkage(this->zone(), &info);
131 Typer typer(this->graph(), info.context());
132 typer.Run();
130 ChangeLowering change_lowering(&jsgraph, &linkage); 133 ChangeLowering change_lowering(&jsgraph, &linkage);
131 SelectLowering select_lowering(this->graph(), this->common()); 134 SelectLowering select_lowering(this->graph(), this->common());
132 GraphReducer reducer(this->graph()); 135 GraphReducer reducer(this->graph());
133 reducer.AddReducer(&change_lowering); 136 reducer.AddReducer(&change_lowering);
134 reducer.AddReducer(&select_lowering); 137 reducer.AddReducer(&select_lowering);
135 reducer.ReduceNode(change); 138 reducer.ReduceNode(change);
136 Verifier::Run(this->graph(), Verifier::UNTYPED); 139 Verifier::Run(this->graph(), Verifier::UNTYPED);
137 } 140 }
138 141
139 Factory* factory() { return this->isolate()->factory(); } 142 Factory* factory() { return this->isolate()->factory(); }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 389
387 input = *i; 390 input = *i;
388 Object* result = t.CallWithPotentialGC<Object>(); 391 Object* result = t.CallWithPotentialGC<Object>();
389 t.CheckNumber(input, result); 392 t.CheckNumber(input, result);
390 } 393 }
391 } 394 }
392 } 395 }
393 } 396 }
394 397
395 #endif // V8_TURBOFAN_BACKEND 398 #endif // V8_TURBOFAN_BACKEND
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/unittests/compiler/change-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698