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 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 return Type::Boolean(zone()); | 1567 return Type::Boolean(zone()); |
1568 } | 1568 } |
1569 | 1569 |
1570 | 1570 |
1571 Type* Typer::Visitor::TypeJSForInStep(Node* node) { | 1571 Type* Typer::Visitor::TypeJSForInStep(Node* node) { |
1572 STATIC_ASSERT(Map::EnumLengthBits::kMax <= FixedArray::kMaxLength); | 1572 STATIC_ASSERT(Map::EnumLengthBits::kMax <= FixedArray::kMaxLength); |
1573 return Type::Range(1, FixedArray::kMaxLength + 1, zone()); | 1573 return Type::Range(1, FixedArray::kMaxLength + 1, zone()); |
1574 } | 1574 } |
1575 | 1575 |
1576 | 1576 |
| 1577 Type* Typer::Visitor::TypeJSLoadMessage(Node* node) { return Type::Any(); } |
| 1578 |
| 1579 |
| 1580 Type* Typer::Visitor::TypeJSStoreMessage(Node* node) { |
| 1581 UNREACHABLE(); |
| 1582 return nullptr; |
| 1583 } |
| 1584 |
| 1585 |
1577 Type* Typer::Visitor::TypeJSStackCheck(Node* node) { return Type::Any(); } | 1586 Type* Typer::Visitor::TypeJSStackCheck(Node* node) { return Type::Any(); } |
1578 | 1587 |
1579 | 1588 |
1580 // Simplified operators. | 1589 // Simplified operators. |
1581 | 1590 |
1582 | 1591 |
1583 Type* Typer::Visitor::TypeBooleanNot(Node* node) { | 1592 Type* Typer::Visitor::TypeBooleanNot(Node* node) { |
1584 return Type::Boolean(zone()); | 1593 return Type::Boolean(zone()); |
1585 } | 1594 } |
1586 | 1595 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2275 } | 2284 } |
2276 if (Type::IsInteger(*value)) { | 2285 if (Type::IsInteger(*value)) { |
2277 return Type::Range(value->Number(), value->Number(), zone()); | 2286 return Type::Range(value->Number(), value->Number(), zone()); |
2278 } | 2287 } |
2279 return Type::Constant(value, zone()); | 2288 return Type::Constant(value, zone()); |
2280 } | 2289 } |
2281 | 2290 |
2282 } // namespace compiler | 2291 } // namespace compiler |
2283 } // namespace internal | 2292 } // namespace internal |
2284 } // namespace v8 | 2293 } // namespace v8 |
OLD | NEW |