Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 1644283002: Revert of [turbofan] Add the StackSlot operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x87/code-generator-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x87/code-generator-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698