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

Side by Side Diff: src/ppc/deoptimizer-ppc.cc

Issue 935383002: Contribution of PowerPC port (continuation of 422063005) - PPC dir update 2 - mark2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/ppc/code-stubs-ppc.cc ('k') | src/ppc/disasm-ppc.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 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Push saved_regs (needed to populate FrameDescription::registers_). 166 // Push saved_regs (needed to populate FrameDescription::registers_).
167 // Leave gaps for other registers. 167 // Leave gaps for other registers.
168 __ subi(sp, sp, Operand(kNumberOfRegisters * kPointerSize)); 168 __ subi(sp, sp, Operand(kNumberOfRegisters * kPointerSize));
169 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) { 169 for (int16_t i = kNumberOfRegisters - 1; i >= 0; i--) {
170 if ((saved_regs & (1 << i)) != 0) { 170 if ((saved_regs & (1 << i)) != 0) {
171 __ StoreP(ToRegister(i), MemOperand(sp, kPointerSize * i)); 171 __ StoreP(ToRegister(i), MemOperand(sp, kPointerSize * i));
172 } 172 }
173 } 173 }
174 174
175 __ mov(ip, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate())));
176 __ StoreP(fp, MemOperand(ip));
177
175 const int kSavedRegistersAreaSize = 178 const int kSavedRegistersAreaSize =
176 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; 179 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize;
177 180
178 // Get the bailout id from the stack. 181 // Get the bailout id from the stack.
179 __ LoadP(r5, MemOperand(sp, kSavedRegistersAreaSize)); 182 __ LoadP(r5, MemOperand(sp, kSavedRegistersAreaSize));
180 183
181 // Get the address of the location in the code object (r6) (return 184 // Get the address of the location in the code object (r6) (return
182 // address for lazy deoptimization) and compute the fp-to-sp delta in 185 // address for lazy deoptimization) and compute the fp-to-sp delta in
183 // register r7. 186 // register r7.
184 __ mflr(r6); 187 __ mflr(r6);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 #else 362 #else
360 // No out-of-line constant pool support. 363 // No out-of-line constant pool support.
361 UNREACHABLE(); 364 UNREACHABLE();
362 #endif 365 #endif
363 } 366 }
364 367
365 368
366 #undef __ 369 #undef __
367 } 370 }
368 } // namespace v8::internal 371 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/ppc/disasm-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698