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 } | |
661 case kArm64Float32RoundDown: | 649 case kArm64Float32RoundDown: |
662 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); | 650 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); |
663 break; | 651 break; |
664 case kArm64Float64RoundDown: | 652 case kArm64Float64RoundDown: |
665 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 653 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
666 break; | 654 break; |
667 case kArm64Float32RoundUp: | 655 case kArm64Float32RoundUp: |
668 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0)); | 656 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0)); |
669 break; | 657 break; |
670 case kArm64Float64RoundUp: | 658 case kArm64Float64RoundUp: |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 padding_size -= kInstructionSize; | 1687 padding_size -= kInstructionSize; |
1700 } | 1688 } |
1701 } | 1689 } |
1702 } | 1690 } |
1703 | 1691 |
1704 #undef __ | 1692 #undef __ |
1705 | 1693 |
1706 } // namespace compiler | 1694 } // namespace compiler |
1707 } // namespace internal | 1695 } // namespace internal |
1708 } // namespace v8 | 1696 } // namespace v8 |
OLD | NEW |