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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.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/pipeline.cc ('k') | src/compiler/raw-machine-assembler.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 Register scratch1 = i.TempRegister(1); 816 Register scratch1 = i.TempRegister(1);
817 auto ool = new (zone()) OutOfLineRecordWrite(this, object, offset, value, 817 auto ool = new (zone()) OutOfLineRecordWrite(this, object, offset, value,
818 scratch0, scratch1, mode); 818 scratch0, scratch1, mode);
819 __ StorePX(value, MemOperand(object, offset)); 819 __ StorePX(value, MemOperand(object, offset));
820 __ CheckPageFlag(object, scratch0, 820 __ CheckPageFlag(object, scratch0,
821 MemoryChunk::kPointersFromHereAreInterestingMask, ne, 821 MemoryChunk::kPointersFromHereAreInterestingMask, ne,
822 ool->entry()); 822 ool->entry());
823 __ bind(ool->exit()); 823 __ bind(ool->exit());
824 break; 824 break;
825 } 825 }
826 case kArchStackSlot: {
827 FrameOffset offset =
828 frame_access_state()->GetFrameOffset(i.InputInt32(0));
829 __ addi(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp,
830 Operand(offset.offset()));
831 break;
832 }
833 case kPPC_And: 826 case kPPC_And:
834 if (HasRegisterInput(instr, 1)) { 827 if (HasRegisterInput(instr, 1)) {
835 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 828 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
836 i.OutputRCBit()); 829 i.OutputRCBit());
837 } else { 830 } else {
838 __ andi(i.OutputRegister(), i.InputRegister(0), i.InputImmediate(1)); 831 __ andi(i.OutputRegister(), i.InputRegister(0), i.InputImmediate(1));
839 } 832 }
840 break; 833 break;
841 case kPPC_AndComplement: 834 case kPPC_AndComplement:
842 __ andc(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 835 __ andc(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 padding_size -= v8::internal::Assembler::kInstrSize; 1844 padding_size -= v8::internal::Assembler::kInstrSize;
1852 } 1845 }
1853 } 1846 }
1854 } 1847 }
1855 1848
1856 #undef __ 1849 #undef __
1857 1850
1858 } // namespace compiler 1851 } // namespace compiler
1859 } // namespace internal 1852 } // namespace internal
1860 } // namespace v8 1853 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698