| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 4307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4318 | 4318 |
| 4319 | 4319 |
| 4320 void MacroAssembler::AssertRegisterIsClear(Register reg, BailoutReason reason) { | 4320 void MacroAssembler::AssertRegisterIsClear(Register reg, BailoutReason reason) { |
| 4321 if (emit_debug_code()) { | 4321 if (emit_debug_code()) { |
| 4322 CheckRegisterIsClear(reg, reason); | 4322 CheckRegisterIsClear(reg, reason); |
| 4323 } | 4323 } |
| 4324 } | 4324 } |
| 4325 | 4325 |
| 4326 | 4326 |
| 4327 void MacroAssembler::AssertRegisterIsRoot(Register reg, | 4327 void MacroAssembler::AssertRegisterIsRoot(Register reg, |
| 4328 Heap::RootListIndex index) { | 4328 Heap::RootListIndex index, |
| 4329 BailoutReason reason) { |
| 4329 // CompareRoot uses Tmp0(). | 4330 // CompareRoot uses Tmp0(). |
| 4330 ASSERT(!reg.Is(Tmp0())); | 4331 ASSERT(!reg.Is(Tmp0())); |
| 4331 if (emit_debug_code()) { | 4332 if (emit_debug_code()) { |
| 4332 CompareRoot(reg, index); | 4333 CompareRoot(reg, index); |
| 4333 Check(eq, kRegisterDidNotMatchExpectedRoot); | 4334 Check(eq, reason); |
| 4334 } | 4335 } |
| 4335 } | 4336 } |
| 4336 | 4337 |
| 4337 | 4338 |
| 4338 void MacroAssembler::AssertFastElements(Register elements) { | 4339 void MacroAssembler::AssertFastElements(Register elements) { |
| 4339 if (emit_debug_code()) { | 4340 if (emit_debug_code()) { |
| 4340 Register temp = Tmp1(); | 4341 Register temp = Tmp1(); |
| 4341 Label ok; | 4342 Label ok; |
| 4342 Ldr(temp, FieldMemOperand(elements, HeapObject::kMapOffset)); | 4343 Ldr(temp, FieldMemOperand(elements, HeapObject::kMapOffset)); |
| 4343 JumpIfRoot(temp, Heap::kFixedArrayMapRootIndex, &ok); | 4344 JumpIfRoot(temp, Heap::kFixedArrayMapRootIndex, &ok); |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4840 } | 4841 } |
| 4841 } | 4842 } |
| 4842 | 4843 |
| 4843 | 4844 |
| 4844 #undef __ | 4845 #undef __ |
| 4845 | 4846 |
| 4846 | 4847 |
| 4847 } } // namespace v8::internal | 4848 } } // namespace v8::internal |
| 4848 | 4849 |
| 4849 #endif // V8_TARGET_ARCH_A64 | 4850 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |