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

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

Issue 1778713002: PPC: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/codegen-ppc.cc ('k') | src/ppc/frames-ppc.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/codegen.h" 5 #include "src/codegen.h"
6 #include "src/deoptimizer.h" 6 #include "src/deoptimizer.h"
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/register-configuration.h" 8 #include "src/register-configuration.h"
9 #include "src/safepoint-table.h" 9 #include "src/safepoint-table.h"
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // address for lazy deoptimization) and compute the fp-to-sp delta in 155 // address for lazy deoptimization) and compute the fp-to-sp delta in
156 // register r7. 156 // register r7.
157 __ mflr(r6); 157 __ mflr(r6);
158 // Correct one word for bailout id. 158 // Correct one word for bailout id.
159 __ addi(r7, sp, Operand(kSavedRegistersAreaSize + (1 * kPointerSize))); 159 __ addi(r7, sp, Operand(kSavedRegistersAreaSize + (1 * kPointerSize)));
160 __ sub(r7, fp, r7); 160 __ sub(r7, fp, r7);
161 161
162 // Allocate a new deoptimizer object. 162 // Allocate a new deoptimizer object.
163 // Pass six arguments in r3 to r8. 163 // Pass six arguments in r3 to r8.
164 __ PrepareCallCFunction(6, r8); 164 __ PrepareCallCFunction(6, r8);
165 __ li(r3, Operand::Zero());
166 Label context_check;
167 __ LoadP(r4, MemOperand(fp, CommonFrameConstants::kContextOrFrameTypeOffset));
168 __ JumpIfSmi(r4, &context_check);
165 __ LoadP(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 169 __ LoadP(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
170 __ bind(&context_check);
166 __ li(r4, Operand(type())); // bailout type, 171 __ li(r4, Operand(type())); // bailout type,
167 // r5: bailout id already loaded. 172 // r5: bailout id already loaded.
168 // r6: code address or 0 already loaded. 173 // r6: code address or 0 already loaded.
169 // r7: Fp-to-sp delta. 174 // r7: Fp-to-sp delta.
170 __ mov(r8, Operand(ExternalReference::isolate_address(isolate()))); 175 __ mov(r8, Operand(ExternalReference::isolate_address(isolate())));
171 // Call Deoptimizer::New(). 176 // Call Deoptimizer::New().
172 { 177 {
173 AllowExternalCallThatCantCauseGC scope(masm()); 178 AllowExternalCallThatCantCauseGC scope(masm());
174 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6); 179 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6);
175 } 180 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 334
330 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 335 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
331 DCHECK(FLAG_enable_embedded_constant_pool); 336 DCHECK(FLAG_enable_embedded_constant_pool);
332 SetFrameSlot(offset, value); 337 SetFrameSlot(offset, value);
333 } 338 }
334 339
335 340
336 #undef __ 341 #undef __
337 } // namespace internal 342 } // namespace internal
338 } // namespace v8 343 } // namespace v8
OLDNEW
« no previous file with comments | « src/ppc/codegen-ppc.cc ('k') | src/ppc/frames-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698