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/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 Register scratch1 = i.TempRegister(1); | 639 Register scratch1 = i.TempRegister(1); |
640 auto ool = new (zone()) OutOfLineRecordWrite(this, object, index, value, | 640 auto ool = new (zone()) OutOfLineRecordWrite(this, object, index, value, |
641 scratch0, scratch1, mode); | 641 scratch0, scratch1, mode); |
642 __ Str(value, MemOperand(object, index)); | 642 __ Str(value, MemOperand(object, index)); |
643 __ CheckPageFlagSet(object, scratch0, | 643 __ CheckPageFlagSet(object, scratch0, |
644 MemoryChunk::kPointersFromHereAreInterestingMask, | 644 MemoryChunk::kPointersFromHereAreInterestingMask, |
645 ool->entry()); | 645 ool->entry()); |
646 __ Bind(ool->exit()); | 646 __ Bind(ool->exit()); |
647 break; | 647 break; |
648 } | 648 } |
| 649 case kArchStackSlot: { |
| 650 FrameOffset offset = |
| 651 frame_access_state()->GetFrameOffset(i.InputInt32(0)); |
| 652 Register base; |
| 653 if (offset.from_stack_pointer()) { |
| 654 base = __ StackPointer(); |
| 655 } else { |
| 656 base = fp; |
| 657 } |
| 658 __ Add(i.OutputRegister(0), base, Operand(offset.offset())); |
| 659 break; |
| 660 } |
649 case kArm64Float32RoundDown: | 661 case kArm64Float32RoundDown: |
650 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); | 662 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); |
651 break; | 663 break; |
652 case kArm64Float64RoundDown: | 664 case kArm64Float64RoundDown: |
653 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 665 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
654 break; | 666 break; |
655 case kArm64Float32RoundUp: | 667 case kArm64Float32RoundUp: |
656 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0)); | 668 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0)); |
657 break; | 669 break; |
658 case kArm64Float64RoundUp: | 670 case kArm64Float64RoundUp: |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 padding_size -= kInstructionSize; | 1699 padding_size -= kInstructionSize; |
1688 } | 1700 } |
1689 } | 1701 } |
1690 } | 1702 } |
1691 | 1703 |
1692 #undef __ | 1704 #undef __ |
1693 | 1705 |
1694 } // namespace compiler | 1706 } // namespace compiler |
1695 } // namespace internal | 1707 } // namespace internal |
1696 } // namespace v8 | 1708 } // namespace v8 |
OLD | NEW |