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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 3705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3716 __ push(r2); | 3716 __ push(r2); |
3717 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); | 3717 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); |
3718 __ LoadRoot(ip, Heap::kAllocationSiteMapRootIndex); | 3718 __ LoadRoot(ip, Heap::kAllocationSiteMapRootIndex); |
3719 __ cmp(r2, ip); | 3719 __ cmp(r2, ip); |
3720 __ pop(r2); | 3720 __ pop(r2); |
3721 __ Assert(eq, kExpectedAllocationSite); | 3721 __ Assert(eq, kExpectedAllocationSite); |
3722 } | 3722 } |
3723 | 3723 |
3724 // Tail call into the stub that handles binary operations with allocation | 3724 // Tail call into the stub that handles binary operations with allocation |
3725 // sites. | 3725 // sites. |
3726 BinaryOpWithAllocationSiteStub stub(isolate(), state_); | 3726 BinaryOpWithAllocationSiteStub stub(isolate(), state()); |
3727 __ TailCallStub(&stub); | 3727 __ TailCallStub(&stub); |
3728 } | 3728 } |
3729 | 3729 |
3730 | 3730 |
3731 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { | 3731 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { |
3732 DCHECK(state_ == CompareIC::SMI); | 3732 DCHECK(state_ == CompareIC::SMI); |
3733 Label miss; | 3733 Label miss; |
3734 __ orr(r2, r1, r0); | 3734 __ orr(r2, r1, r0); |
3735 __ JumpIfNotSmi(r2, &miss); | 3735 __ JumpIfNotSmi(r2, &miss); |
3736 | 3736 |
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5096 MemOperand(fp, 6 * kPointerSize), | 5096 MemOperand(fp, 6 * kPointerSize), |
5097 NULL); | 5097 NULL); |
5098 } | 5098 } |
5099 | 5099 |
5100 | 5100 |
5101 #undef __ | 5101 #undef __ |
5102 | 5102 |
5103 } } // namespace v8::internal | 5103 } } // namespace v8::internal |
5104 | 5104 |
5105 #endif // V8_TARGET_ARCH_ARM | 5105 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |