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/base/flags.h" | 5 #include "src/base/flags.h" |
6 #include "src/bootstrapper.h" | 6 #include "src/bootstrapper.h" |
7 #include "src/compiler/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 case Runtime::kInlineIsArray: | 1529 case Runtime::kInlineIsArray: |
1530 case Runtime::kInlineIsFunction: | 1530 case Runtime::kInlineIsFunction: |
1531 case Runtime::kInlineIsRegExp: | 1531 case Runtime::kInlineIsRegExp: |
1532 return Bounds(Type::None(zone()), Type::Boolean(zone())); | 1532 return Bounds(Type::None(zone()), Type::Boolean(zone())); |
1533 case Runtime::kInlineDoubleLo: | 1533 case Runtime::kInlineDoubleLo: |
1534 case Runtime::kInlineDoubleHi: | 1534 case Runtime::kInlineDoubleHi: |
1535 return Bounds(Type::None(zone()), Type::Signed32()); | 1535 return Bounds(Type::None(zone()), Type::Signed32()); |
1536 case Runtime::kInlineConstructDouble: | 1536 case Runtime::kInlineConstructDouble: |
1537 case Runtime::kInlineMathFloor: | 1537 case Runtime::kInlineMathFloor: |
1538 case Runtime::kInlineMathSqrt: | 1538 case Runtime::kInlineMathSqrt: |
| 1539 case Runtime::kInlineMathAcos: |
| 1540 case Runtime::kInlineMathAsin: |
| 1541 case Runtime::kInlineMathAtan: |
| 1542 case Runtime::kInlineMathAtan2: |
1539 return Bounds(Type::None(zone()), Type::Number()); | 1543 return Bounds(Type::None(zone()), Type::Number()); |
1540 case Runtime::kInlineMathClz32: | 1544 case Runtime::kInlineMathClz32: |
1541 return Bounds(Type::None(), Type::Range(0, 32, zone())); | 1545 return Bounds(Type::None(), Type::Range(0, 32, zone())); |
1542 case Runtime::kInlineStringGetLength: | 1546 case Runtime::kInlineStringGetLength: |
1543 // The string::length property is always an unsigned smi. | 1547 // The string::length property is always an unsigned smi. |
1544 return Bounds(Type::None(), Type::Intersect(Type::UnsignedSmall(), | 1548 return Bounds(Type::None(), Type::Intersect(Type::UnsignedSmall(), |
1545 Type::TaggedSigned())); | 1549 Type::TaggedSigned())); |
1546 default: | 1550 default: |
1547 break; | 1551 break; |
1548 } | 1552 } |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2253 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2257 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2254 #undef TYPED_ARRAY_CASE | 2258 #undef TYPED_ARRAY_CASE |
2255 } | 2259 } |
2256 } | 2260 } |
2257 return Type::Constant(value, zone()); | 2261 return Type::Constant(value, zone()); |
2258 } | 2262 } |
2259 | 2263 |
2260 } // namespace compiler | 2264 } // namespace compiler |
2261 } // namespace internal | 2265 } // namespace internal |
2262 } // namespace v8 | 2266 } // namespace v8 |
OLD | NEW |