| 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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1474 case Runtime::kInlineCreateIterResultObject: | 1474 case Runtime::kInlineCreateIterResultObject: |
| 1475 case Runtime::kInlineRegExpConstructResult: | 1475 case Runtime::kInlineRegExpConstructResult: |
| 1476 return Type::OtherObject(); | 1476 return Type::OtherObject(); |
| 1477 case Runtime::kInlineSubString: | 1477 case Runtime::kInlineSubString: |
| 1478 case Runtime::kInlineStringCharFromCode: | 1478 case Runtime::kInlineStringCharFromCode: |
| 1479 return Type::String(); | 1479 return Type::String(); |
| 1480 case Runtime::kInlineToInteger: | 1480 case Runtime::kInlineToInteger: |
| 1481 return TypeUnaryOp(node, ToInteger); | 1481 return TypeUnaryOp(node, ToInteger); |
| 1482 case Runtime::kInlineToLength: | 1482 case Runtime::kInlineToLength: |
| 1483 return TypeUnaryOp(node, ToLength); | 1483 return TypeUnaryOp(node, ToLength); |
| 1484 case Runtime::kInlineToName: | |
| 1485 return TypeUnaryOp(node, ToName); | |
| 1486 case Runtime::kInlineToNumber: | 1484 case Runtime::kInlineToNumber: |
| 1487 return TypeUnaryOp(node, ToNumber); | 1485 return TypeUnaryOp(node, ToNumber); |
| 1488 case Runtime::kInlineToObject: | 1486 case Runtime::kInlineToObject: |
| 1489 return TypeUnaryOp(node, ToObject); | 1487 return TypeUnaryOp(node, ToObject); |
| 1490 case Runtime::kInlineToPrimitive: | |
| 1491 case Runtime::kInlineToPrimitive_Number: | |
| 1492 case Runtime::kInlineToPrimitive_String: | |
| 1493 return TypeUnaryOp(node, ToPrimitive); | |
| 1494 case Runtime::kInlineToString: | 1488 case Runtime::kInlineToString: |
| 1495 return TypeUnaryOp(node, ToString); | 1489 return TypeUnaryOp(node, ToString); |
| 1496 case Runtime::kHasInPrototypeChain: | 1490 case Runtime::kHasInPrototypeChain: |
| 1497 return Type::Boolean(); | 1491 return Type::Boolean(); |
| 1498 default: | 1492 default: |
| 1499 break; | 1493 break; |
| 1500 } | 1494 } |
| 1501 return Type::Any(); | 1495 return Type::Any(); |
| 1502 } | 1496 } |
| 1503 | 1497 |
| (...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2570 } | 2564 } |
| 2571 if (Type::IsInteger(*value)) { | 2565 if (Type::IsInteger(*value)) { |
| 2572 return Type::Range(value->Number(), value->Number(), zone()); | 2566 return Type::Range(value->Number(), value->Number(), zone()); |
| 2573 } | 2567 } |
| 2574 return Type::Constant(value, zone()); | 2568 return Type::Constant(value, zone()); |
| 2575 } | 2569 } |
| 2576 | 2570 |
| 2577 } // namespace compiler | 2571 } // namespace compiler |
| 2578 } // namespace internal | 2572 } // namespace internal |
| 2579 } // namespace v8 | 2573 } // namespace v8 |
| OLD | NEW |