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

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

Issue 1197703002: Use big-boy Types to annotate interface descriptor parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest Created 5 years, 6 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 | « src/x64/interface-descriptors-x64.cc ('k') | test/cctest/compiler/test-js-constant-cache.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/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 Node* change = this->graph()->NewNode(op, load); 119 Node* change = this->graph()->NewNode(op, load);
120 Node* ret = this->graph()->NewNode(this->common()->Return(), change, 120 Node* ret = this->graph()->NewNode(this->common()->Return(), change,
121 this->start(), this->start()); 121 this->start(), this->start());
122 Node* end = this->graph()->NewNode(this->common()->End(1), ret); 122 Node* end = this->graph()->NewNode(this->common()->End(1), ret);
123 this->graph()->SetEnd(end); 123 this->graph()->SetEnd(end);
124 LowerChange(change); 124 LowerChange(change);
125 } 125 }
126 126
127 void LowerChange(Node* change) { 127 void LowerChange(Node* change) {
128 // Run the graph reducer with changes lowering on a single node. 128 // Run the graph reducer with changes lowering on a single node.
129 Typer typer(this->isolate(), this->graph(), Handle<Context>()); 129 Typer typer(this->isolate(), this->graph(), nullptr, Handle<Context>());
130 typer.Run(); 130 typer.Run();
131 ChangeLowering change_lowering(&jsgraph); 131 ChangeLowering change_lowering(&jsgraph);
132 SelectLowering select_lowering(this->graph(), this->common()); 132 SelectLowering select_lowering(this->graph(), this->common());
133 GraphReducer reducer(this->zone(), this->graph()); 133 GraphReducer reducer(this->zone(), this->graph());
134 reducer.AddReducer(&change_lowering); 134 reducer.AddReducer(&change_lowering);
135 reducer.AddReducer(&select_lowering); 135 reducer.AddReducer(&select_lowering);
136 reducer.ReduceNode(change); 136 reducer.ReduceNode(change);
137 Verifier::Run(this->graph(), Verifier::UNTYPED); 137 Verifier::Run(this->graph(), Verifier::UNTYPED);
138 } 138 }
139 139
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 input = *i; 388 input = *i;
389 Object* result = t.CallWithPotentialGC<Object>(); 389 Object* result = t.CallWithPotentialGC<Object>();
390 t.CheckNumber(input, result); 390 t.CheckNumber(input, result);
391 } 391 }
392 } 392 }
393 } 393 }
394 } 394 }
395 395
396 #endif // V8_TURBOFAN_BACKEND 396 #endif // V8_TURBOFAN_BACKEND
OLDNEW
« no previous file with comments | « src/x64/interface-descriptors-x64.cc ('k') | test/cctest/compiler/test-js-constant-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698