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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1574 case Runtime::kInlineToNumber: | 1574 case Runtime::kInlineToNumber: |
1575 return TypeUnaryOp(node, ToNumber); | 1575 return TypeUnaryOp(node, ToNumber); |
1576 case Runtime::kInlineToObject: | 1576 case Runtime::kInlineToObject: |
1577 return TypeUnaryOp(node, ToObject); | 1577 return TypeUnaryOp(node, ToObject); |
1578 case Runtime::kInlineToPrimitive: | 1578 case Runtime::kInlineToPrimitive: |
1579 case Runtime::kInlineToPrimitive_Number: | 1579 case Runtime::kInlineToPrimitive_Number: |
1580 case Runtime::kInlineToPrimitive_String: | 1580 case Runtime::kInlineToPrimitive_String: |
1581 return TypeUnaryOp(node, ToPrimitive); | 1581 return TypeUnaryOp(node, ToPrimitive); |
1582 case Runtime::kInlineToString: | 1582 case Runtime::kInlineToString: |
1583 return TypeUnaryOp(node, ToString); | 1583 return TypeUnaryOp(node, ToString); |
| 1584 case Runtime::kHasInPrototypeChain: |
| 1585 return Type::Boolean(); |
1584 default: | 1586 default: |
1585 break; | 1587 break; |
1586 } | 1588 } |
1587 return Type::Any(); | 1589 return Type::Any(); |
1588 } | 1590 } |
1589 | 1591 |
1590 | 1592 |
1591 Type* Typer::Visitor::TypeJSConvertReceiver(Node* node) { | 1593 Type* Typer::Visitor::TypeJSConvertReceiver(Node* node) { |
1592 return Type::Receiver(); | 1594 return Type::Receiver(); |
1593 } | 1595 } |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 } | 2409 } |
2408 if (Type::IsInteger(*value)) { | 2410 if (Type::IsInteger(*value)) { |
2409 return Type::Range(value->Number(), value->Number(), zone()); | 2411 return Type::Range(value->Number(), value->Number(), zone()); |
2410 } | 2412 } |
2411 return Type::Constant(value, zone()); | 2413 return Type::Constant(value, zone()); |
2412 } | 2414 } |
2413 | 2415 |
2414 } // namespace compiler | 2416 } // namespace compiler |
2415 } // namespace internal | 2417 } // namespace internal |
2416 } // namespace v8 | 2418 } // namespace v8 |
OLD | NEW |