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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 Register scratch1 = i.TempRegister(1); | 733 Register scratch1 = i.TempRegister(1); |
734 auto ool = new (zone()) OutOfLineRecordWrite(this, object, operand, value, | 734 auto ool = new (zone()) OutOfLineRecordWrite(this, object, operand, value, |
735 scratch0, scratch1, mode); | 735 scratch0, scratch1, mode); |
736 __ movp(operand, value); | 736 __ movp(operand, value); |
737 __ CheckPageFlag(object, scratch0, | 737 __ CheckPageFlag(object, scratch0, |
738 MemoryChunk::kPointersFromHereAreInterestingMask, | 738 MemoryChunk::kPointersFromHereAreInterestingMask, |
739 not_zero, ool->entry()); | 739 not_zero, ool->entry()); |
740 __ bind(ool->exit()); | 740 __ bind(ool->exit()); |
741 break; | 741 break; |
742 } | 742 } |
| 743 case kArchStackSlot: { |
| 744 FrameOffset offset = |
| 745 frame_access_state()->GetFrameOffset(i.InputInt32(0)); |
| 746 Register base; |
| 747 if (offset.from_stack_pointer()) { |
| 748 base = rsp; |
| 749 } else { |
| 750 base = rbp; |
| 751 } |
| 752 __ leaq(i.OutputRegister(), Operand(base, offset.offset())); |
| 753 break; |
| 754 } |
743 case kX64Add32: | 755 case kX64Add32: |
744 ASSEMBLE_BINOP(addl); | 756 ASSEMBLE_BINOP(addl); |
745 break; | 757 break; |
746 case kX64Add: | 758 case kX64Add: |
747 ASSEMBLE_BINOP(addq); | 759 ASSEMBLE_BINOP(addq); |
748 break; | 760 break; |
749 case kX64Sub32: | 761 case kX64Sub32: |
750 ASSEMBLE_BINOP(subl); | 762 ASSEMBLE_BINOP(subl); |
751 break; | 763 break; |
752 case kX64Sub: | 764 case kX64Sub: |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2135 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2147 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2136 __ Nop(padding_size); | 2148 __ Nop(padding_size); |
2137 } | 2149 } |
2138 } | 2150 } |
2139 | 2151 |
2140 #undef __ | 2152 #undef __ |
2141 | 2153 |
2142 } // namespace compiler | 2154 } // namespace compiler |
2143 } // namespace internal | 2155 } // namespace internal |
2144 } // namespace v8 | 2156 } // namespace v8 |
OLD | NEW |