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 } | |
755 case kX64Add32: | 743 case kX64Add32: |
756 ASSEMBLE_BINOP(addl); | 744 ASSEMBLE_BINOP(addl); |
757 break; | 745 break; |
758 case kX64Add: | 746 case kX64Add: |
759 ASSEMBLE_BINOP(addq); | 747 ASSEMBLE_BINOP(addq); |
760 break; | 748 break; |
761 case kX64Sub32: | 749 case kX64Sub32: |
762 ASSEMBLE_BINOP(subl); | 750 ASSEMBLE_BINOP(subl); |
763 break; | 751 break; |
764 case kX64Sub: | 752 case kX64Sub: |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2147 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2135 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2148 __ Nop(padding_size); | 2136 __ Nop(padding_size); |
2149 } | 2137 } |
2150 } | 2138 } |
2151 | 2139 |
2152 #undef __ | 2140 #undef __ |
2153 | 2141 |
2154 } // namespace compiler | 2142 } // namespace compiler |
2155 } // namespace internal | 2143 } // namespace internal |
2156 } // namespace v8 | 2144 } // namespace v8 |
OLD | NEW |