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

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

Issue 1774353002: X87: [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/x87/code-stubs-x87.cc ('k') | src/x87/frames-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
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/full-codegen.h" 9 #include "src/full-codegen/full-codegen.h"
10 #include "src/register-configuration.h" 10 #include "src/register-configuration.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // and compute the fp-to-sp delta in register edx. 239 // and compute the fp-to-sp delta in register edx.
240 __ mov(ecx, Operand(esp, kSavedRegistersAreaSize + 1 * kPointerSize)); 240 __ mov(ecx, Operand(esp, kSavedRegistersAreaSize + 1 * kPointerSize));
241 __ lea(edx, Operand(esp, kSavedRegistersAreaSize + 2 * kPointerSize)); 241 __ lea(edx, Operand(esp, kSavedRegistersAreaSize + 2 * kPointerSize));
242 242
243 __ sub(edx, ebp); 243 __ sub(edx, ebp);
244 __ neg(edx); 244 __ neg(edx);
245 245
246 __ push(edi); 246 __ push(edi);
247 // Allocate a new deoptimizer object. 247 // Allocate a new deoptimizer object.
248 __ PrepareCallCFunction(6, eax); 248 __ PrepareCallCFunction(6, eax);
249 __ mov(eax, Immediate(0));
250 Label context_check;
251 __ mov(edi, Operand(ebp, CommonFrameConstants::kContextOrFrameTypeOffset));
252 __ JumpIfSmi(edi, &context_check);
249 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 253 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
254 __ bind(&context_check);
250 __ mov(Operand(esp, 0 * kPointerSize), eax); // Function. 255 __ mov(Operand(esp, 0 * kPointerSize), eax); // Function.
251 __ mov(Operand(esp, 1 * kPointerSize), Immediate(type())); // Bailout type. 256 __ mov(Operand(esp, 1 * kPointerSize), Immediate(type())); // Bailout type.
252 __ mov(Operand(esp, 2 * kPointerSize), ebx); // Bailout id. 257 __ mov(Operand(esp, 2 * kPointerSize), ebx); // Bailout id.
253 __ mov(Operand(esp, 3 * kPointerSize), ecx); // Code address or 0. 258 __ mov(Operand(esp, 3 * kPointerSize), ecx); // Code address or 0.
254 __ mov(Operand(esp, 4 * kPointerSize), edx); // Fp-to-sp delta. 259 __ mov(Operand(esp, 4 * kPointerSize), edx); // Fp-to-sp delta.
255 __ mov(Operand(esp, 5 * kPointerSize), 260 __ mov(Operand(esp, 5 * kPointerSize),
256 Immediate(ExternalReference::isolate_address(isolate()))); 261 Immediate(ExternalReference::isolate_address(isolate())));
257 { 262 {
258 AllowExternalCallThatCantCauseGC scope(masm()); 263 AllowExternalCallThatCantCauseGC scope(masm());
259 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6); 264 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 422 }
418 423
419 424
420 #undef __ 425 #undef __
421 426
422 427
423 } // namespace internal 428 } // namespace internal
424 } // namespace v8 429 } // namespace v8
425 430
426 #endif // V8_TARGET_ARCH_X87 431 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/frames-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698