OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |