| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1652 AssertNotSmi(object, kOperandIsASmiAndNotABoundFunction); | 1652 AssertNotSmi(object, kOperandIsASmiAndNotABoundFunction); |
| 1653 | 1653 |
| 1654 UseScratchRegisterScope temps(this); | 1654 UseScratchRegisterScope temps(this); |
| 1655 Register temp = temps.AcquireX(); | 1655 Register temp = temps.AcquireX(); |
| 1656 | 1656 |
| 1657 CompareObjectType(object, temp, temp, JS_BOUND_FUNCTION_TYPE); | 1657 CompareObjectType(object, temp, temp, JS_BOUND_FUNCTION_TYPE); |
| 1658 Check(eq, kOperandIsNotABoundFunction); | 1658 Check(eq, kOperandIsNotABoundFunction); |
| 1659 } | 1659 } |
| 1660 } | 1660 } |
| 1661 | 1661 |
| 1662 void MacroAssembler::AssertGeneratorObject(Register object) { |
| 1663 if (emit_debug_code()) { |
| 1664 AssertNotSmi(object, kOperandIsASmiAndNotAGeneratorObject); |
| 1665 |
| 1666 UseScratchRegisterScope temps(this); |
| 1667 Register temp = temps.AcquireX(); |
| 1668 |
| 1669 CompareObjectType(object, temp, temp, JS_GENERATOR_OBJECT_TYPE); |
| 1670 Check(eq, kOperandIsNotAGeneratorObject); |
| 1671 } |
| 1672 } |
| 1662 | 1673 |
| 1663 void MacroAssembler::AssertReceiver(Register object) { | 1674 void MacroAssembler::AssertReceiver(Register object) { |
| 1664 if (emit_debug_code()) { | 1675 if (emit_debug_code()) { |
| 1665 AssertNotSmi(object, kOperandIsASmiAndNotAReceiver); | 1676 AssertNotSmi(object, kOperandIsASmiAndNotAReceiver); |
| 1666 | 1677 |
| 1667 UseScratchRegisterScope temps(this); | 1678 UseScratchRegisterScope temps(this); |
| 1668 Register temp = temps.AcquireX(); | 1679 Register temp = temps.AcquireX(); |
| 1669 | 1680 |
| 1670 STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE); | 1681 STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE); |
| 1671 CompareObjectType(object, temp, temp, FIRST_JS_RECEIVER_TYPE); | 1682 CompareObjectType(object, temp, temp, FIRST_JS_RECEIVER_TYPE); |
| (...skipping 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5092 } | 5103 } |
| 5093 | 5104 |
| 5094 | 5105 |
| 5095 #undef __ | 5106 #undef __ |
| 5096 | 5107 |
| 5097 | 5108 |
| 5098 } // namespace internal | 5109 } // namespace internal |
| 5099 } // namespace v8 | 5110 } // namespace v8 |
| 5100 | 5111 |
| 5101 #endif // V8_TARGET_ARCH_ARM64 | 5112 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |