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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { | 1513 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { |
1514 return WrapContextTypeForInput(node); | 1514 return WrapContextTypeForInput(node); |
1515 } | 1515 } |
1516 | 1516 |
1517 | 1517 |
1518 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { | 1518 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { |
1519 return WrapContextTypeForInput(node); | 1519 return WrapContextTypeForInput(node); |
1520 } | 1520 } |
1521 | 1521 |
1522 | 1522 |
1523 Type* Typer::Visitor::TypeJSCreateModuleContext(Node* node) { | |
1524 // TODO(rossberg): this is probably incorrect | |
1525 return WrapContextTypeForInput(node); | |
1526 } | |
1527 | |
1528 | |
1529 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) { | 1523 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) { |
1530 return WrapContextTypeForInput(node); | 1524 return WrapContextTypeForInput(node); |
1531 } | 1525 } |
1532 | 1526 |
1533 | 1527 |
1534 // JS other operators. | 1528 // JS other operators. |
1535 | 1529 |
1536 | 1530 |
1537 Type* Typer::Visitor::TypeJSCallConstruct(Node* node) { | 1531 Type* Typer::Visitor::TypeJSCallConstruct(Node* node) { |
1538 return Type::Receiver(); | 1532 return Type::Receiver(); |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2794 } | 2788 } |
2795 if (Type::IsInteger(*value)) { | 2789 if (Type::IsInteger(*value)) { |
2796 return Type::Range(value->Number(), value->Number(), zone()); | 2790 return Type::Range(value->Number(), value->Number(), zone()); |
2797 } | 2791 } |
2798 return Type::Constant(value, zone()); | 2792 return Type::Constant(value, zone()); |
2799 } | 2793 } |
2800 | 2794 |
2801 } // namespace compiler | 2795 } // namespace compiler |
2802 } // namespace internal | 2796 } // namespace internal |
2803 } // namespace v8 | 2797 } // namespace v8 |
OLD | NEW |