OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 break; | 538 break; |
539 case kArm64StrD: | 539 case kArm64StrD: |
540 __ Str(i.InputDoubleRegister(2), i.MemoryOperand()); | 540 __ Str(i.InputDoubleRegister(2), i.MemoryOperand()); |
541 break; | 541 break; |
542 case kArm64StoreWriteBarrier: { | 542 case kArm64StoreWriteBarrier: { |
543 Register object = i.InputRegister(0); | 543 Register object = i.InputRegister(0); |
544 Register index = i.InputRegister(1); | 544 Register index = i.InputRegister(1); |
545 Register value = i.InputRegister(2); | 545 Register value = i.InputRegister(2); |
546 __ Add(index, object, Operand(index, SXTW)); | 546 __ Add(index, object, Operand(index, SXTW)); |
547 __ Str(value, MemOperand(index)); | 547 __ Str(value, MemOperand(index)); |
548 SaveFPRegsMode mode = code_->frame()->DidAllocateDoubleRegisters() | 548 SaveFPRegsMode mode = |
549 ? kSaveFPRegs | 549 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; |
550 : kDontSaveFPRegs; | |
551 // TODO(dcarney): we shouldn't test write barriers from c calls. | 550 // TODO(dcarney): we shouldn't test write barriers from c calls. |
552 LinkRegisterStatus lr_status = kLRHasNotBeenSaved; | 551 LinkRegisterStatus lr_status = kLRHasNotBeenSaved; |
553 UseScratchRegisterScope scope(masm()); | 552 UseScratchRegisterScope scope(masm()); |
554 Register temp = no_reg; | 553 Register temp = no_reg; |
555 if (csp.is(masm()->StackPointer())) { | 554 if (csp.is(masm()->StackPointer())) { |
556 temp = scope.AcquireX(); | 555 temp = scope.AcquireX(); |
557 lr_status = kLRHasBeenSaved; | 556 lr_status = kLRHasBeenSaved; |
558 __ Push(lr, temp); // Need to push a pair | 557 __ Push(lr, temp); // Need to push a pair |
559 } | 558 } |
560 __ RecordWrite(object, index, value, lr_status, mode); | 559 __ RecordWrite(object, index, value, lr_status, mode); |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 } | 985 } |
987 } | 986 } |
988 MarkLazyDeoptSite(); | 987 MarkLazyDeoptSite(); |
989 } | 988 } |
990 | 989 |
991 #undef __ | 990 #undef __ |
992 | 991 |
993 } // namespace compiler | 992 } // namespace compiler |
994 } // namespace internal | 993 } // namespace internal |
995 } // namespace v8 | 994 } // namespace v8 |
OLD | NEW |