| 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 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 case Runtime::kInlineMathSqrt: | 1552 case Runtime::kInlineMathSqrt: |
| 1553 case Runtime::kInlineMathAcos: | 1553 case Runtime::kInlineMathAcos: |
| 1554 case Runtime::kInlineMathAsin: | 1554 case Runtime::kInlineMathAsin: |
| 1555 case Runtime::kInlineMathAtan: | 1555 case Runtime::kInlineMathAtan: |
| 1556 case Runtime::kInlineMathAtan2: | 1556 case Runtime::kInlineMathAtan2: |
| 1557 return Bounds(Type::None(zone()), Type::Number()); | 1557 return Bounds(Type::None(zone()), Type::Number()); |
| 1558 case Runtime::kInlineMathClz32: | 1558 case Runtime::kInlineMathClz32: |
| 1559 return Bounds(Type::None(), Type::Range(0, 32, zone())); | 1559 return Bounds(Type::None(), Type::Range(0, 32, zone())); |
| 1560 case Runtime::kInlineStringGetLength: | 1560 case Runtime::kInlineStringGetLength: |
| 1561 return Bounds(Type::None(), Type::Range(0, String::kMaxLength, zone())); | 1561 return Bounds(Type::None(), Type::Range(0, String::kMaxLength, zone())); |
| 1562 case Runtime::kInlineToObject: |
| 1563 return Bounds(Type::None(), Type::Receiver()); |
| 1562 default: | 1564 default: |
| 1563 break; | 1565 break; |
| 1564 } | 1566 } |
| 1565 return Bounds::Unbounded(zone()); | 1567 return Bounds::Unbounded(zone()); |
| 1566 } | 1568 } |
| 1567 | 1569 |
| 1568 | 1570 |
| 1569 Bounds Typer::Visitor::TypeJSForInNext(Node* node) { | 1571 Bounds Typer::Visitor::TypeJSForInNext(Node* node) { |
| 1570 return Bounds(Type::None(zone()), | 1572 return Bounds(Type::None(zone()), |
| 1571 Type::Union(Type::Name(), Type::Undefined(), zone())); | 1573 Type::Union(Type::Name(), Type::Undefined(), zone())); |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2371 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2373 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
| 2372 #undef TYPED_ARRAY_CASE | 2374 #undef TYPED_ARRAY_CASE |
| 2373 } | 2375 } |
| 2374 } | 2376 } |
| 2375 return Type::Constant(value, zone()); | 2377 return Type::Constant(value, zone()); |
| 2376 } | 2378 } |
| 2377 | 2379 |
| 2378 } // namespace compiler | 2380 } // namespace compiler |
| 2379 } // namespace internal | 2381 } // namespace internal |
| 2380 } // namespace v8 | 2382 } // namespace v8 |
| OLD | NEW |