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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 1122083002: Remove materialized objects on stack unwind. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks, do not unwind the handler's frame Created 5 years, 7 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/deoptimizer.cc ('k') | src/isolate.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 Isolate::kPendingHandlerCodeAddress, isolate()); 2531 Isolate::kPendingHandlerCodeAddress, isolate());
2532 ExternalReference pending_handler_offset_address( 2532 ExternalReference pending_handler_offset_address(
2533 Isolate::kPendingHandlerOffsetAddress, isolate()); 2533 Isolate::kPendingHandlerOffsetAddress, isolate());
2534 ExternalReference pending_handler_fp_address( 2534 ExternalReference pending_handler_fp_address(
2535 Isolate::kPendingHandlerFPAddress, isolate()); 2535 Isolate::kPendingHandlerFPAddress, isolate());
2536 ExternalReference pending_handler_sp_address( 2536 ExternalReference pending_handler_sp_address(
2537 Isolate::kPendingHandlerSPAddress, isolate()); 2537 Isolate::kPendingHandlerSPAddress, isolate());
2538 2538
2539 // Ask the runtime for help to determine the handler. This will set eax to 2539 // Ask the runtime for help to determine the handler. This will set eax to
2540 // contain the current pending exception, don't clobber it. 2540 // contain the current pending exception, don't clobber it.
2541 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); 2541 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler,
2542 isolate());
2542 { 2543 {
2543 FrameScope scope(masm, StackFrame::MANUAL); 2544 FrameScope scope(masm, StackFrame::MANUAL);
2544 __ PrepareCallCFunction(3, eax); 2545 __ PrepareCallCFunction(3, eax);
2545 __ mov(Operand(esp, 0 * kPointerSize), Immediate(0)); // argc. 2546 __ mov(Operand(esp, 0 * kPointerSize), Immediate(0)); // argc.
2546 __ mov(Operand(esp, 1 * kPointerSize), Immediate(0)); // argv. 2547 __ mov(Operand(esp, 1 * kPointerSize), Immediate(0)); // argv.
2547 __ mov(Operand(esp, 2 * kPointerSize), 2548 __ mov(Operand(esp, 2 * kPointerSize),
2548 Immediate(ExternalReference::isolate_address(isolate()))); 2549 Immediate(ExternalReference::isolate_address(isolate())));
2549 __ CallCFunction(find_handler, 3); 2550 __ CallCFunction(find_handler, 3);
2550 } 2551 }
2551 2552
(...skipping 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after
5407 ApiParameterOperand(2), kStackSpace, nullptr, 5408 ApiParameterOperand(2), kStackSpace, nullptr,
5408 Operand(ebp, 7 * kPointerSize), NULL); 5409 Operand(ebp, 7 * kPointerSize), NULL);
5409 } 5410 }
5410 5411
5411 5412
5412 #undef __ 5413 #undef __
5413 5414
5414 } } // namespace v8::internal 5415 } } // namespace v8::internal
5415 5416
5416 #endif // V8_TARGET_ARCH_IA32 5417 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698