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

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

Issue 1700323002: PPC: [turbofan] Add an operator to access the parent frame pointer (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 | « no previous file | no next file » | 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 814 DCHECK_EQ(LeaveRC, i.OutputRCBit());
815 break; 815 break;
816 case kArchStackPointer: 816 case kArchStackPointer:
817 __ mr(i.OutputRegister(), sp); 817 __ mr(i.OutputRegister(), sp);
818 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 818 DCHECK_EQ(LeaveRC, i.OutputRCBit());
819 break; 819 break;
820 case kArchFramePointer: 820 case kArchFramePointer:
821 __ mr(i.OutputRegister(), fp); 821 __ mr(i.OutputRegister(), fp);
822 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 822 DCHECK_EQ(LeaveRC, i.OutputRCBit());
823 break; 823 break;
824 case kArchParentFramePointer:
825 if (frame_access_state()->frame()->needs_frame()) {
826 __ LoadP(i.OutputRegister(), MemOperand(fp, 0));
827 } else {
828 __ mr(i.OutputRegister(), fp);
829 }
830 break;
824 case kArchTruncateDoubleToI: 831 case kArchTruncateDoubleToI:
825 // TODO(mbrandy): move slow call to stub out of line. 832 // TODO(mbrandy): move slow call to stub out of line.
826 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); 833 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
827 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 834 DCHECK_EQ(LeaveRC, i.OutputRCBit());
828 break; 835 break;
829 case kArchStoreWithWriteBarrier: { 836 case kArchStoreWithWriteBarrier: {
830 RecordWriteMode mode = 837 RecordWriteMode mode =
831 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode())); 838 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode()));
832 Register object = i.InputRegister(0); 839 Register object = i.InputRegister(0);
833 Register value = i.InputRegister(2); 840 Register value = i.InputRegister(2);
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 padding_size -= v8::internal::Assembler::kInstrSize; 1892 padding_size -= v8::internal::Assembler::kInstrSize;
1886 } 1893 }
1887 } 1894 }
1888 } 1895 }
1889 1896
1890 #undef __ 1897 #undef __
1891 1898
1892 } // namespace compiler 1899 } // namespace compiler
1893 } // namespace internal 1900 } // namespace internal
1894 } // namespace v8 1901 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698