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

Side by Side Diff: src/x64/code-stubs-x64.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/runtime/runtime-internal.cc ('k') | src/x87/code-stubs-x87.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2439 matching lines...) Expand 10 before | Expand all | Expand 10 after
2450 Isolate::kPendingHandlerCodeAddress, isolate()); 2450 Isolate::kPendingHandlerCodeAddress, isolate());
2451 ExternalReference pending_handler_offset_address( 2451 ExternalReference pending_handler_offset_address(
2452 Isolate::kPendingHandlerOffsetAddress, isolate()); 2452 Isolate::kPendingHandlerOffsetAddress, isolate());
2453 ExternalReference pending_handler_fp_address( 2453 ExternalReference pending_handler_fp_address(
2454 Isolate::kPendingHandlerFPAddress, isolate()); 2454 Isolate::kPendingHandlerFPAddress, isolate());
2455 ExternalReference pending_handler_sp_address( 2455 ExternalReference pending_handler_sp_address(
2456 Isolate::kPendingHandlerSPAddress, isolate()); 2456 Isolate::kPendingHandlerSPAddress, isolate());
2457 2457
2458 // Ask the runtime for help to determine the handler. This will set rax to 2458 // Ask the runtime for help to determine the handler. This will set rax to
2459 // contain the current pending exception, don't clobber it. 2459 // contain the current pending exception, don't clobber it.
2460 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); 2460 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler,
2461 isolate());
2461 { 2462 {
2462 FrameScope scope(masm, StackFrame::MANUAL); 2463 FrameScope scope(masm, StackFrame::MANUAL);
2463 __ movp(arg_reg_1, Immediate(0)); // argc. 2464 __ movp(arg_reg_1, Immediate(0)); // argc.
2464 __ movp(arg_reg_2, Immediate(0)); // argv. 2465 __ movp(arg_reg_2, Immediate(0)); // argv.
2465 __ Move(arg_reg_3, ExternalReference::isolate_address(isolate())); 2466 __ Move(arg_reg_3, ExternalReference::isolate_address(isolate()));
2466 __ PrepareCallCFunction(3); 2467 __ PrepareCallCFunction(3);
2467 __ CallCFunction(find_handler, 3); 2468 __ CallCFunction(find_handler, 3);
2468 } 2469 }
2469 2470
2470 // Retrieve the handler context, SP and FP. 2471 // Retrieve the handler context, SP and FP.
(...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after
5350 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, 5351 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg,
5351 kStackSpace, nullptr, return_value_operand, NULL); 5352 kStackSpace, nullptr, return_value_operand, NULL);
5352 } 5353 }
5353 5354
5354 5355
5355 #undef __ 5356 #undef __
5356 5357
5357 } } // namespace v8::internal 5358 } } // namespace v8::internal
5358 5359
5359 #endif // V8_TARGET_ARCH_X64 5360 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698