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

Side by Side Diff: src/mips/code-stubs-mips.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/isolate.cc ('k') | src/mips64/code-stubs-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 Isolate::kPendingHandlerCodeAddress, isolate()); 1144 Isolate::kPendingHandlerCodeAddress, isolate());
1145 ExternalReference pending_handler_offset_address( 1145 ExternalReference pending_handler_offset_address(
1146 Isolate::kPendingHandlerOffsetAddress, isolate()); 1146 Isolate::kPendingHandlerOffsetAddress, isolate());
1147 ExternalReference pending_handler_fp_address( 1147 ExternalReference pending_handler_fp_address(
1148 Isolate::kPendingHandlerFPAddress, isolate()); 1148 Isolate::kPendingHandlerFPAddress, isolate());
1149 ExternalReference pending_handler_sp_address( 1149 ExternalReference pending_handler_sp_address(
1150 Isolate::kPendingHandlerSPAddress, isolate()); 1150 Isolate::kPendingHandlerSPAddress, isolate());
1151 1151
1152 // Ask the runtime for help to determine the handler. This will set v0 to 1152 // Ask the runtime for help to determine the handler. This will set v0 to
1153 // contain the current pending exception, don't clobber it. 1153 // contain the current pending exception, don't clobber it.
1154 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); 1154 ExternalReference find_handler(Runtime::kUnwindAndFindExceptionHandler,
1155 isolate());
1155 { 1156 {
1156 FrameScope scope(masm, StackFrame::MANUAL); 1157 FrameScope scope(masm, StackFrame::MANUAL);
1157 __ PrepareCallCFunction(3, 0, a0); 1158 __ PrepareCallCFunction(3, 0, a0);
1158 __ mov(a0, zero_reg); 1159 __ mov(a0, zero_reg);
1159 __ mov(a1, zero_reg); 1160 __ mov(a1, zero_reg);
1160 __ li(a2, Operand(ExternalReference::isolate_address(isolate()))); 1161 __ li(a2, Operand(ExternalReference::isolate_address(isolate())));
1161 __ CallCFunction(find_handler, 3); 1162 __ CallCFunction(find_handler, 3);
1162 } 1163 }
1163 1164
1164 // Retrieve the handler context, SP and FP. 1165 // Retrieve the handler context, SP and FP.
(...skipping 4329 matching lines...) Expand 10 before | Expand all | Expand 10 after
5494 kStackUnwindSpace, kInvalidStackOffset, 5495 kStackUnwindSpace, kInvalidStackOffset,
5495 MemOperand(fp, 6 * kPointerSize), NULL); 5496 MemOperand(fp, 6 * kPointerSize), NULL);
5496 } 5497 }
5497 5498
5498 5499
5499 #undef __ 5500 #undef __
5500 5501
5501 } } // namespace v8::internal 5502 } } // namespace v8::internal
5502 5503
5503 #endif // V8_TARGET_ARCH_MIPS 5504 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698