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/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 return nullptr; | 547 return nullptr; |
548 } | 548 } |
549 | 549 |
550 | 550 |
551 Type* Typer::Visitor::TypeEffectSet(Node* node) { | 551 Type* Typer::Visitor::TypeEffectSet(Node* node) { |
552 UNREACHABLE(); | 552 UNREACHABLE(); |
553 return nullptr; | 553 return nullptr; |
554 } | 554 } |
555 | 555 |
556 | 556 |
557 Type* Typer::Visitor::TypeValueEffect(Node* node) { | 557 Type* Typer::Visitor::TypeBeginRegion(Node* node) { |
558 UNREACHABLE(); | 558 UNREACHABLE(); |
559 return nullptr; | 559 return nullptr; |
560 } | 560 } |
561 | 561 |
562 | 562 |
563 Type* Typer::Visitor::TypeFinish(Node* node) { return Operand(node, 0); } | 563 Type* Typer::Visitor::TypeFinishRegion(Node* node) { return Operand(node, 0); } |
564 | 564 |
565 | 565 |
566 Type* Typer::Visitor::TypeFrameState(Node* node) { | 566 Type* Typer::Visitor::TypeFrameState(Node* node) { |
567 // TODO(rossberg): Ideally FrameState wouldn't have a value output. | 567 // TODO(rossberg): Ideally FrameState wouldn't have a value output. |
568 return Type::Internal(zone()); | 568 return Type::Internal(zone()); |
569 } | 569 } |
570 | 570 |
571 | 571 |
572 Type* Typer::Visitor::TypeStateValues(Node* node) { | 572 Type* Typer::Visitor::TypeStateValues(Node* node) { |
573 return Type::Internal(zone()); | 573 return Type::Internal(zone()); |
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2097 } | 2097 } |
2098 if (Type::IsInteger(*value)) { | 2098 if (Type::IsInteger(*value)) { |
2099 return Type::Range(value->Number(), value->Number(), zone()); | 2099 return Type::Range(value->Number(), value->Number(), zone()); |
2100 } | 2100 } |
2101 return Type::Constant(value, zone()); | 2101 return Type::Constant(value, zone()); |
2102 } | 2102 } |
2103 | 2103 |
2104 } // namespace compiler | 2104 } // namespace compiler |
2105 } // namespace internal | 2105 } // namespace internal |
2106 } // namespace v8 | 2106 } // namespace v8 |
OLD | NEW |