| 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 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 case Runtime::kInlineIsArray: | 1579 case Runtime::kInlineIsArray: |
| 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: | |
| 1590 case Runtime::kInlineMathAtan2: | 1589 case Runtime::kInlineMathAtan2: |
| 1591 return Type::Number(); | 1590 return Type::Number(); |
| 1592 case Runtime::kInlineMathClz32: | 1591 case Runtime::kInlineMathClz32: |
| 1593 return Type::Range(0, 32, zone()); | 1592 return Type::Range(0, 32, zone()); |
| 1594 case Runtime::kInlineCreateIterResultObject: | 1593 case Runtime::kInlineCreateIterResultObject: |
| 1595 case Runtime::kInlineRegExpConstructResult: | 1594 case Runtime::kInlineRegExpConstructResult: |
| 1596 return Type::OtherObject(); | 1595 return Type::OtherObject(); |
| 1597 case Runtime::kInlineSubString: | 1596 case Runtime::kInlineSubString: |
| 1598 case Runtime::kInlineStringCharFromCode: | 1597 case Runtime::kInlineStringCharFromCode: |
| 1599 return Type::String(); | 1598 return Type::String(); |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 } | 2468 } |
| 2470 if (Type::IsInteger(*value)) { | 2469 if (Type::IsInteger(*value)) { |
| 2471 return Type::Range(value->Number(), value->Number(), zone()); | 2470 return Type::Range(value->Number(), value->Number(), zone()); |
| 2472 } | 2471 } |
| 2473 return Type::Constant(value, zone()); | 2472 return Type::Constant(value, zone()); |
| 2474 } | 2473 } |
| 2475 | 2474 |
| 2476 } // namespace compiler | 2475 } // namespace compiler |
| 2477 } // namespace internal | 2476 } // namespace internal |
| 2478 } // namespace v8 | 2477 } // namespace v8 |
| OLD | NEW |