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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 Isolate::kPendingHandlerCodeAddress, isolate()); 1139 Isolate::kPendingHandlerCodeAddress, isolate());
1140 ExternalReference pending_handler_offset_address( 1140 ExternalReference pending_handler_offset_address(
1141 Isolate::kPendingHandlerOffsetAddress, isolate()); 1141 Isolate::kPendingHandlerOffsetAddress, isolate());
1142 ExternalReference pending_handler_fp_address( 1142 ExternalReference pending_handler_fp_address(
1143 Isolate::kPendingHandlerFPAddress, isolate()); 1143 Isolate::kPendingHandlerFPAddress, isolate());
1144 ExternalReference pending_handler_sp_address( 1144 ExternalReference pending_handler_sp_address(
1145 Isolate::kPendingHandlerSPAddress, isolate()); 1145 Isolate::kPendingHandlerSPAddress, isolate());
1146 1146
1147 // Ask the runtime for help to determine the handler. This will set v0 to 1147 // Ask the runtime for help to determine the handler. This will set v0 to
1148 // contain the current pending exception, don't clobber it. 1148 // contain the current pending exception, don't clobber it.
1149 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); 1149 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler,
1150 isolate());
1150 { 1151 {
1151 FrameScope scope(masm, StackFrame::MANUAL); 1152 FrameScope scope(masm, StackFrame::MANUAL);
1152 __ PrepareCallCFunction(3, 0, a0); 1153 __ PrepareCallCFunction(3, 0, a0);
1153 __ mov(a0, zero_reg); 1154 __ mov(a0, zero_reg);
1154 __ mov(a1, zero_reg); 1155 __ mov(a1, zero_reg);
1155 __ li(a2, Operand(ExternalReference::isolate_address(isolate()))); 1156 __ li(a2, Operand(ExternalReference::isolate_address(isolate())));
1156 __ CallCFunction(find_handler, 3); 1157 __ CallCFunction(find_handler, 3);
1157 } 1158 }
1158 1159
1159 // Retrieve the handler context, SP and FP. 1160 // Retrieve the handler context, SP and FP.
(...skipping 4377 matching lines...) Expand 10 before | Expand all | Expand 10 after
5537 kStackUnwindSpace, kInvalidStackOffset, 5538 kStackUnwindSpace, kInvalidStackOffset,
5538 MemOperand(fp, 6 * kPointerSize), NULL); 5539 MemOperand(fp, 6 * kPointerSize), NULL);
5539 } 5540 }
5540 5541
5541 5542
5542 #undef __ 5543 #undef __
5543 5544
5544 } } // namespace v8::internal 5545 } } // namespace v8::internal
5545 5546
5546 #endif // V8_TARGET_ARCH_MIPS64 5547 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698