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

Side by Side Diff: src/compiler/typer.cc

Issue 1168693002: [turbofan] Allow ReplaceWithValue to kill control. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. 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/compiler/pipeline.cc ('k') | src/compiler/verifier.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 "src/base/flags.h" 5 #include "src/base/flags.h"
6 #include "src/bootstrapper.h" 6 #include "src/bootstrapper.h"
7 #include "src/compiler/graph-reducer.h" 7 #include "src/compiler/graph-reducer.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 for (Node* input : node->inputs()) { 432 for (Node* input : node->inputs()) {
433 if (!marked.Get(input)) { 433 if (!marked.Get(input)) {
434 marked.Set(input, true); 434 marked.Set(input, true);
435 deque.push_back(input); 435 deque.push_back(input);
436 } 436 }
437 } 437 }
438 } 438 }
439 } 439 }
440 440
441 Visitor visitor(this); 441 Visitor visitor(this);
442 GraphReducer graph_reducer(graph(), zone()); 442 GraphReducer graph_reducer(zone(), graph());
443 graph_reducer.AddReducer(&visitor); 443 graph_reducer.AddReducer(&visitor);
444 graph_reducer.ReduceGraph(); 444 graph_reducer.ReduceGraph();
445 } 445 }
446 446
447 447
448 void Typer::Decorator::Decorate(Node* node, bool incomplete) { 448 void Typer::Decorator::Decorate(Node* node, bool incomplete) {
449 if (incomplete) return; 449 if (incomplete) return;
450 if (node->op()->ValueOutputCount() > 0) { 450 if (node->op()->ValueOutputCount() > 0) {
451 // Only eagerly type-decorate nodes with known input types. 451 // Only eagerly type-decorate nodes with known input types.
452 // Other cases will generally require a proper fixpoint iteration with Run. 452 // Other cases will generally require a proper fixpoint iteration with Run.
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2395 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2396 #undef TYPED_ARRAY_CASE 2396 #undef TYPED_ARRAY_CASE
2397 } 2397 }
2398 } 2398 }
2399 return Type::Constant(value, zone()); 2399 return Type::Constant(value, zone());
2400 } 2400 }
2401 2401
2402 } // namespace compiler 2402 } // namespace compiler
2403 } // namespace internal 2403 } // namespace internal
2404 } // namespace v8 2404 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698