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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 4314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4325 // Make sure that we actually patched the allocation site. | 4325 // Make sure that we actually patched the allocation site. |
4326 if (FLAG_debug_code) { | 4326 if (FLAG_debug_code) { |
4327 __ AssertNotSmi(x2, kExpectedAllocationSite); | 4327 __ AssertNotSmi(x2, kExpectedAllocationSite); |
4328 __ Ldr(x10, FieldMemOperand(x2, HeapObject::kMapOffset)); | 4328 __ Ldr(x10, FieldMemOperand(x2, HeapObject::kMapOffset)); |
4329 __ AssertRegisterIsRoot(x10, Heap::kAllocationSiteMapRootIndex, | 4329 __ AssertRegisterIsRoot(x10, Heap::kAllocationSiteMapRootIndex, |
4330 kExpectedAllocationSite); | 4330 kExpectedAllocationSite); |
4331 } | 4331 } |
4332 | 4332 |
4333 // Tail call into the stub that handles binary operations with allocation | 4333 // Tail call into the stub that handles binary operations with allocation |
4334 // sites. | 4334 // sites. |
4335 BinaryOpWithAllocationSiteStub stub(isolate(), state_); | 4335 BinaryOpWithAllocationSiteStub stub(isolate(), state()); |
4336 __ TailCallStub(&stub); | 4336 __ TailCallStub(&stub); |
4337 } | 4337 } |
4338 | 4338 |
4339 | 4339 |
4340 void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { | 4340 void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
4341 // We need some extra registers for this stub, they have been allocated | 4341 // We need some extra registers for this stub, they have been allocated |
4342 // but we need to save them before using them. | 4342 // but we need to save them before using them. |
4343 regs_.Save(masm); | 4343 regs_.Save(masm); |
4344 | 4344 |
4345 if (remembered_set_action_ == EMIT_REMEMBERED_SET) { | 4345 if (remembered_set_action_ == EMIT_REMEMBERED_SET) { |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5423 MemOperand(fp, 6 * kPointerSize), | 5423 MemOperand(fp, 6 * kPointerSize), |
5424 NULL); | 5424 NULL); |
5425 } | 5425 } |
5426 | 5426 |
5427 | 5427 |
5428 #undef __ | 5428 #undef __ |
5429 | 5429 |
5430 } } // namespace v8::internal | 5430 } } // namespace v8::internal |
5431 | 5431 |
5432 #endif // V8_TARGET_ARCH_ARM64 | 5432 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |