OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/crankshaft/hydrogen-instructions.h" | 5 #include "src/crankshaft/hydrogen-instructions.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/safe_math.h" | 8 #include "src/base/safe_math.h" |
9 #include "src/crankshaft/hydrogen-infer-representation.h" | 9 #include "src/crankshaft/hydrogen-infer-representation.h" |
10 #include "src/double.h" | 10 #include "src/double.h" |
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 } | 1633 } |
1634 return this; | 1634 return this; |
1635 } | 1635 } |
1636 | 1636 |
1637 | 1637 |
1638 void HCheckInstanceType::GetCheckInterval(InstanceType* first, | 1638 void HCheckInstanceType::GetCheckInterval(InstanceType* first, |
1639 InstanceType* last) { | 1639 InstanceType* last) { |
1640 DCHECK(is_interval_check()); | 1640 DCHECK(is_interval_check()); |
1641 switch (check_) { | 1641 switch (check_) { |
1642 case IS_SPEC_OBJECT: | 1642 case IS_SPEC_OBJECT: |
1643 *first = FIRST_SPEC_OBJECT_TYPE; | 1643 *first = FIRST_JS_RECEIVER_TYPE; |
1644 *last = LAST_SPEC_OBJECT_TYPE; | 1644 *last = LAST_JS_RECEIVER_TYPE; |
1645 return; | 1645 return; |
1646 case IS_JS_ARRAY: | 1646 case IS_JS_ARRAY: |
1647 *first = *last = JS_ARRAY_TYPE; | 1647 *first = *last = JS_ARRAY_TYPE; |
1648 return; | 1648 return; |
1649 case IS_JS_DATE: | 1649 case IS_JS_DATE: |
1650 *first = *last = JS_DATE_TYPE; | 1650 *first = *last = JS_DATE_TYPE; |
1651 return; | 1651 return; |
1652 default: | 1652 default: |
1653 UNREACHABLE(); | 1653 UNREACHABLE(); |
1654 } | 1654 } |
(...skipping 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4695 case HObjectAccess::kExternalMemory: | 4695 case HObjectAccess::kExternalMemory: |
4696 os << "[external-memory]"; | 4696 os << "[external-memory]"; |
4697 break; | 4697 break; |
4698 } | 4698 } |
4699 | 4699 |
4700 return os << "@" << access.offset(); | 4700 return os << "@" << access.offset(); |
4701 } | 4701 } |
4702 | 4702 |
4703 } // namespace internal | 4703 } // namespace internal |
4704 } // namespace v8 | 4704 } // namespace v8 |
OLD | NEW |