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

Side by Side Diff: src/compiler/x87/code-generator-x87.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/x64/code-generator-x64.cc ('k') | test/cctest/compiler/codegen-tester.h » ('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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 Register scratch1 = i.TempRegister(1); 580 Register scratch1 = i.TempRegister(1);
581 auto ool = new (zone()) OutOfLineRecordWrite(this, object, operand, value, 581 auto ool = new (zone()) OutOfLineRecordWrite(this, object, operand, value,
582 scratch0, scratch1, mode); 582 scratch0, scratch1, mode);
583 __ mov(operand, value); 583 __ mov(operand, value);
584 __ CheckPageFlag(object, scratch0, 584 __ CheckPageFlag(object, scratch0,
585 MemoryChunk::kPointersFromHereAreInterestingMask, 585 MemoryChunk::kPointersFromHereAreInterestingMask,
586 not_zero, ool->entry()); 586 not_zero, ool->entry());
587 __ bind(ool->exit()); 587 __ bind(ool->exit());
588 break; 588 break;
589 } 589 }
590 case kArchStackSlot: {
591 FrameOffset offset =
592 frame_access_state()->GetFrameOffset(i.InputInt32(0));
593 Register base;
594 if (offset.from_stack_pointer()) {
595 base = esp;
596 } else {
597 base = ebp;
598 }
599 __ lea(i.OutputRegister(), Operand(base, offset.offset()));
600 break;
601 }
602 case kX87Add: 590 case kX87Add:
603 if (HasImmediateInput(instr, 1)) { 591 if (HasImmediateInput(instr, 1)) {
604 __ add(i.InputOperand(0), i.InputImmediate(1)); 592 __ add(i.InputOperand(0), i.InputImmediate(1));
605 } else { 593 } else {
606 __ add(i.InputRegister(0), i.InputOperand(1)); 594 __ add(i.InputRegister(0), i.InputOperand(1));
607 } 595 }
608 break; 596 break;
609 case kX87And: 597 case kX87And:
610 if (HasImmediateInput(instr, 1)) { 598 if (HasImmediateInput(instr, 1)) {
611 __ and_(i.InputOperand(0), i.InputImmediate(1)); 599 __ and_(i.InputOperand(0), i.InputImmediate(1));
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2156 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2169 __ Nop(padding_size); 2157 __ Nop(padding_size);
2170 } 2158 }
2171 } 2159 }
2172 2160
2173 #undef __ 2161 #undef __
2174 2162
2175 } // namespace compiler 2163 } // namespace compiler
2176 } // namespace internal 2164 } // namespace internal
2177 } // namespace v8 2165 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | test/cctest/compiler/codegen-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698