| 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/compiler/typer.h" | 5 #include "src/compiler/typer.h" |
| 6 | 6 |
| 7 #include "src/base/flags.h" | 7 #include "src/base/flags.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 // TODO(rossberg): Ideally FrameState wouldn't have a value output. | 629 // TODO(rossberg): Ideally FrameState wouldn't have a value output. |
| 630 return Type::Internal(zone()); | 630 return Type::Internal(zone()); |
| 631 } | 631 } |
| 632 | 632 |
| 633 | 633 |
| 634 Type* Typer::Visitor::TypeStateValues(Node* node) { | 634 Type* Typer::Visitor::TypeStateValues(Node* node) { |
| 635 return Type::Internal(zone()); | 635 return Type::Internal(zone()); |
| 636 } | 636 } |
| 637 | 637 |
| 638 | 638 |
| 639 Type* Typer::Visitor::TypeObjectState(Node* node) { |
| 640 return Type::Internal(zone()); |
| 641 } |
| 642 |
| 643 |
| 639 Type* Typer::Visitor::TypeTypedStateValues(Node* node) { | 644 Type* Typer::Visitor::TypeTypedStateValues(Node* node) { |
| 640 return Type::Internal(zone()); | 645 return Type::Internal(zone()); |
| 641 } | 646 } |
| 642 | 647 |
| 643 | 648 |
| 644 Type* Typer::Visitor::TypeCall(Node* node) { return Type::Any(); } | 649 Type* Typer::Visitor::TypeCall(Node* node) { return Type::Any(); } |
| 645 | 650 |
| 646 | 651 |
| 647 Type* Typer::Visitor::TypeProjection(Node* node) { | 652 Type* Typer::Visitor::TypeProjection(Node* node) { |
| 648 // TODO(titzer): use the output type of the input to determine the bounds. | 653 // TODO(titzer): use the output type of the input to determine the bounds. |
| (...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2427 } | 2432 } |
| 2428 if (Type::IsInteger(*value)) { | 2433 if (Type::IsInteger(*value)) { |
| 2429 return Type::Range(value->Number(), value->Number(), zone()); | 2434 return Type::Range(value->Number(), value->Number(), zone()); |
| 2430 } | 2435 } |
| 2431 return Type::Constant(value, zone()); | 2436 return Type::Constant(value, zone()); |
| 2432 } | 2437 } |
| 2433 | 2438 |
| 2434 } // namespace compiler | 2439 } // namespace compiler |
| 2435 } // namespace internal | 2440 } // namespace internal |
| 2436 } // namespace v8 | 2441 } // namespace v8 |
| OLD | NEW |