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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.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/arm64/code-generator-arm64.cc ('k') | src/compiler/instruction-codes.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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 Register scratch1 = i.TempRegister(1); 492 Register scratch1 = i.TempRegister(1);
493 auto ool = new (zone()) OutOfLineRecordWrite(this, object, operand, value, 493 auto ool = new (zone()) OutOfLineRecordWrite(this, object, operand, value,
494 scratch0, scratch1, mode); 494 scratch0, scratch1, mode);
495 __ mov(operand, value); 495 __ mov(operand, value);
496 __ CheckPageFlag(object, scratch0, 496 __ CheckPageFlag(object, scratch0,
497 MemoryChunk::kPointersFromHereAreInterestingMask, 497 MemoryChunk::kPointersFromHereAreInterestingMask,
498 not_zero, ool->entry()); 498 not_zero, ool->entry());
499 __ bind(ool->exit()); 499 __ bind(ool->exit());
500 break; 500 break;
501 } 501 }
502 case kArchStackSlot: {
503 FrameOffset offset =
504 frame_access_state()->GetFrameOffset(i.InputInt32(0));
505 Register base;
506 if (offset.from_stack_pointer()) {
507 base = esp;
508 } else {
509 base = ebp;
510 }
511 __ lea(i.OutputRegister(), Operand(base, offset.offset()));
512 break;
513 }
514 case kIA32Add: 502 case kIA32Add:
515 if (HasImmediateInput(instr, 1)) { 503 if (HasImmediateInput(instr, 1)) {
516 __ add(i.InputOperand(0), i.InputImmediate(1)); 504 __ add(i.InputOperand(0), i.InputImmediate(1));
517 } else { 505 } else {
518 __ add(i.InputRegister(0), i.InputOperand(1)); 506 __ add(i.InputRegister(0), i.InputOperand(1));
519 } 507 }
520 break; 508 break;
521 case kIA32And: 509 case kIA32And:
522 if (HasImmediateInput(instr, 1)) { 510 if (HasImmediateInput(instr, 1)) {
523 __ and_(i.InputOperand(0), i.InputImmediate(1)); 511 __ and_(i.InputOperand(0), i.InputImmediate(1));
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1703 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1716 __ Nop(padding_size); 1704 __ Nop(padding_size);
1717 } 1705 }
1718 } 1706 }
1719 1707
1720 #undef __ 1708 #undef __
1721 1709
1722 } // namespace compiler 1710 } // namespace compiler
1723 } // namespace internal 1711 } // namespace internal
1724 } // namespace v8 1712 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698