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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 // TODO(rossberg): Ideally FrameState wouldn't have a value output. | 630 // TODO(rossberg): Ideally FrameState wouldn't have a value output. |
631 return Type::Internal(zone()); | 631 return Type::Internal(zone()); |
632 } | 632 } |
633 | 633 |
634 | 634 |
635 Type* Typer::Visitor::TypeStateValues(Node* node) { | 635 Type* Typer::Visitor::TypeStateValues(Node* node) { |
636 return Type::Internal(zone()); | 636 return Type::Internal(zone()); |
637 } | 637 } |
638 | 638 |
639 | 639 |
| 640 Type* Typer::Visitor::TypeObjectState(Node* node) { |
| 641 return Type::Internal(zone()); |
| 642 } |
| 643 |
| 644 |
640 Type* Typer::Visitor::TypeTypedStateValues(Node* node) { | 645 Type* Typer::Visitor::TypeTypedStateValues(Node* node) { |
641 return Type::Internal(zone()); | 646 return Type::Internal(zone()); |
642 } | 647 } |
643 | 648 |
644 | 649 |
645 Type* Typer::Visitor::TypeCall(Node* node) { return Type::Any(); } | 650 Type* Typer::Visitor::TypeCall(Node* node) { return Type::Any(); } |
646 | 651 |
647 | 652 |
648 Type* Typer::Visitor::TypeProjection(Node* node) { | 653 Type* Typer::Visitor::TypeProjection(Node* node) { |
649 // TODO(titzer): use the output type of the input to determine the bounds. | 654 // TODO(titzer): use the output type of the input to determine the bounds. |
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2383 } | 2388 } |
2384 if (Type::IsInteger(*value)) { | 2389 if (Type::IsInteger(*value)) { |
2385 return Type::Range(value->Number(), value->Number(), zone()); | 2390 return Type::Range(value->Number(), value->Number(), zone()); |
2386 } | 2391 } |
2387 return Type::Constant(value, zone()); | 2392 return Type::Constant(value, zone()); |
2388 } | 2393 } |
2389 | 2394 |
2390 } // namespace compiler | 2395 } // namespace compiler |
2391 } // namespace internal | 2396 } // namespace internal |
2392 } // namespace v8 | 2397 } // namespace v8 |
OLD | NEW |