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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/arm64/code-stubs-arm64.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 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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 Isolate::kPendingHandlerCodeAddress, isolate()); 1042 Isolate::kPendingHandlerCodeAddress, isolate());
1043 ExternalReference pending_handler_offset_address( 1043 ExternalReference pending_handler_offset_address(
1044 Isolate::kPendingHandlerOffsetAddress, isolate()); 1044 Isolate::kPendingHandlerOffsetAddress, isolate());
1045 ExternalReference pending_handler_fp_address( 1045 ExternalReference pending_handler_fp_address(
1046 Isolate::kPendingHandlerFPAddress, isolate()); 1046 Isolate::kPendingHandlerFPAddress, isolate());
1047 ExternalReference pending_handler_sp_address( 1047 ExternalReference pending_handler_sp_address(
1048 Isolate::kPendingHandlerSPAddress, isolate()); 1048 Isolate::kPendingHandlerSPAddress, isolate());
1049 1049
1050 // Ask the runtime for help to determine the handler. This will set r0 to 1050 // Ask the runtime for help to determine the handler. This will set r0 to
1051 // contain the current pending exception, don't clobber it. 1051 // contain the current pending exception, don't clobber it.
1052 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); 1052 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler,
1053 isolate());
1053 { 1054 {
1054 FrameScope scope(masm, StackFrame::MANUAL); 1055 FrameScope scope(masm, StackFrame::MANUAL);
1055 __ PrepareCallCFunction(3, 0, r0); 1056 __ PrepareCallCFunction(3, 0, r0);
1056 __ mov(r0, Operand(0)); 1057 __ mov(r0, Operand(0));
1057 __ mov(r1, Operand(0)); 1058 __ mov(r1, Operand(0));
1058 __ mov(r2, Operand(ExternalReference::isolate_address(isolate()))); 1059 __ mov(r2, Operand(ExternalReference::isolate_address(isolate())));
1059 __ CallCFunction(find_handler, 3); 1060 __ CallCFunction(find_handler, 3);
1060 } 1061 }
1061 1062
1062 // Retrieve the handler context, SP and FP. 1063 // Retrieve the handler context, SP and FP.
(...skipping 4220 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 kStackUnwindSpace, NULL, 5284 kStackUnwindSpace, NULL,
5284 MemOperand(fp, 6 * kPointerSize), NULL); 5285 MemOperand(fp, 6 * kPointerSize), NULL);
5285 } 5286 }
5286 5287
5287 5288
5288 #undef __ 5289 #undef __
5289 5290
5290 } } // namespace v8::internal 5291 } } // namespace v8::internal
5291 5292
5292 #endif // V8_TARGET_ARCH_ARM 5293 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698