| 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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 case Runtime::kInlineIsDate: | 1580 case Runtime::kInlineIsDate: |
| 1581 case Runtime::kInlineIsTypedArray: | 1581 case Runtime::kInlineIsTypedArray: |
| 1582 case Runtime::kInlineIsRegExp: | 1582 case Runtime::kInlineIsRegExp: |
| 1583 return Type::Boolean(); | 1583 return Type::Boolean(); |
| 1584 case Runtime::kInlineDoubleLo: | 1584 case Runtime::kInlineDoubleLo: |
| 1585 case Runtime::kInlineDoubleHi: | 1585 case Runtime::kInlineDoubleHi: |
| 1586 return Type::Signed32(); | 1586 return Type::Signed32(); |
| 1587 case Runtime::kInlineConstructDouble: | 1587 case Runtime::kInlineConstructDouble: |
| 1588 case Runtime::kInlineMathFloor: | 1588 case Runtime::kInlineMathFloor: |
| 1589 case Runtime::kInlineMathSqrt: | 1589 case Runtime::kInlineMathSqrt: |
| 1590 case Runtime::kInlineMathAcos: | |
| 1591 case Runtime::kInlineMathAsin: | |
| 1592 case Runtime::kInlineMathAtan: | |
| 1593 case Runtime::kInlineMathAtan2: | 1590 case Runtime::kInlineMathAtan2: |
| 1594 return Type::Number(); | 1591 return Type::Number(); |
| 1595 case Runtime::kInlineMathClz32: | 1592 case Runtime::kInlineMathClz32: |
| 1596 return Type::Range(0, 32, zone()); | 1593 return Type::Range(0, 32, zone()); |
| 1597 case Runtime::kInlineCreateIterResultObject: | 1594 case Runtime::kInlineCreateIterResultObject: |
| 1598 case Runtime::kInlineRegExpConstructResult: | 1595 case Runtime::kInlineRegExpConstructResult: |
| 1599 return Type::OtherObject(); | 1596 return Type::OtherObject(); |
| 1600 case Runtime::kInlineSubString: | 1597 case Runtime::kInlineSubString: |
| 1601 case Runtime::kInlineStringCharFromCode: | 1598 case Runtime::kInlineStringCharFromCode: |
| 1602 return Type::String(); | 1599 return Type::String(); |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2460 } | 2457 } |
| 2461 if (Type::IsInteger(*value)) { | 2458 if (Type::IsInteger(*value)) { |
| 2462 return Type::Range(value->Number(), value->Number(), zone()); | 2459 return Type::Range(value->Number(), value->Number(), zone()); |
| 2463 } | 2460 } |
| 2464 return Type::Constant(value, zone()); | 2461 return Type::Constant(value, zone()); |
| 2465 } | 2462 } |
| 2466 | 2463 |
| 2467 } // namespace compiler | 2464 } // namespace compiler |
| 2468 } // namespace internal | 2465 } // namespace internal |
| 2469 } // namespace v8 | 2466 } // namespace v8 |
| OLD | NEW |