| 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/compilation-dependencies.h" | 10 #include "src/compilation-dependencies.h" |
| (...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 return Type::Range(0, String::kMaxLength, zone()); | 1473 return Type::Range(0, String::kMaxLength, zone()); |
| 1474 case Runtime::kInlineToObject: | 1474 case Runtime::kInlineToObject: |
| 1475 return Type::Receiver(); | 1475 return Type::Receiver(); |
| 1476 default: | 1476 default: |
| 1477 break; | 1477 break; |
| 1478 } | 1478 } |
| 1479 return Type::Any(); | 1479 return Type::Any(); |
| 1480 } | 1480 } |
| 1481 | 1481 |
| 1482 | 1482 |
| 1483 Type* Typer::Visitor::TypeJSConvertReceiver(Node* node) { |
| 1484 return Type::Receiver(); |
| 1485 } |
| 1486 |
| 1487 |
| 1483 Type* Typer::Visitor::TypeJSForInNext(Node* node) { | 1488 Type* Typer::Visitor::TypeJSForInNext(Node* node) { |
| 1484 return Type::Union(Type::Name(), Type::Undefined(), zone()); | 1489 return Type::Union(Type::Name(), Type::Undefined(), zone()); |
| 1485 } | 1490 } |
| 1486 | 1491 |
| 1487 | 1492 |
| 1488 Type* Typer::Visitor::TypeJSForInPrepare(Node* node) { | 1493 Type* Typer::Visitor::TypeJSForInPrepare(Node* node) { |
| 1489 // TODO(bmeurer): Return a tuple type here. | 1494 // TODO(bmeurer): Return a tuple type here. |
| 1490 return Type::Any(); | 1495 return Type::Any(); |
| 1491 } | 1496 } |
| 1492 | 1497 |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2171 } | 2176 } |
| 2172 if (Type::IsInteger(*value)) { | 2177 if (Type::IsInteger(*value)) { |
| 2173 return Type::Range(value->Number(), value->Number(), zone()); | 2178 return Type::Range(value->Number(), value->Number(), zone()); |
| 2174 } | 2179 } |
| 2175 return Type::Constant(value, zone()); | 2180 return Type::Constant(value, zone()); |
| 2176 } | 2181 } |
| 2177 | 2182 |
| 2178 } // namespace compiler | 2183 } // namespace compiler |
| 2179 } // namespace internal | 2184 } // namespace internal |
| 2180 } // namespace v8 | 2185 } // namespace v8 |
| OLD | NEW |