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

Side by Side Diff: src/ppc/code-stubs-ppc.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/mips64/code-stubs-mips64.cc ('k') | src/runtime/runtime.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 Isolate::kPendingHandlerCodeAddress, isolate()); 1124 Isolate::kPendingHandlerCodeAddress, isolate());
1125 ExternalReference pending_handler_offset_address( 1125 ExternalReference pending_handler_offset_address(
1126 Isolate::kPendingHandlerOffsetAddress, isolate()); 1126 Isolate::kPendingHandlerOffsetAddress, isolate());
1127 ExternalReference pending_handler_fp_address( 1127 ExternalReference pending_handler_fp_address(
1128 Isolate::kPendingHandlerFPAddress, isolate()); 1128 Isolate::kPendingHandlerFPAddress, isolate());
1129 ExternalReference pending_handler_sp_address( 1129 ExternalReference pending_handler_sp_address(
1130 Isolate::kPendingHandlerSPAddress, isolate()); 1130 Isolate::kPendingHandlerSPAddress, isolate());
1131 1131
1132 // Ask the runtime for help to determine the handler. This will set r3 to 1132 // Ask the runtime for help to determine the handler. This will set r3 to
1133 // contain the current pending exception, don't clobber it. 1133 // contain the current pending exception, don't clobber it.
1134 ExternalReference find_handler(Runtime::kFindExceptionHandler, isolate()); 1134 ExternalReference find_handler(Runtime::kUnwindFindExceptionHandler,
1135 isolate());
1135 { 1136 {
1136 FrameScope scope(masm, StackFrame::MANUAL); 1137 FrameScope scope(masm, StackFrame::MANUAL);
1137 __ PrepareCallCFunction(3, 0, r3); 1138 __ PrepareCallCFunction(3, 0, r3);
1138 __ li(r3, Operand::Zero()); 1139 __ li(r3, Operand::Zero());
1139 __ li(r4, Operand::Zero()); 1140 __ li(r4, Operand::Zero());
1140 __ mov(r5, Operand(ExternalReference::isolate_address(isolate()))); 1141 __ mov(r5, Operand(ExternalReference::isolate_address(isolate())));
1141 __ CallCFunction(find_handler, 3); 1142 __ CallCFunction(find_handler, 3);
1142 } 1143 }
1143 1144
1144 // Retrieve the handler context, SP and FP. 1145 // Retrieve the handler context, SP and FP.
(...skipping 4434 matching lines...) Expand 10 before | Expand all | Expand 10 after
5579 kStackUnwindSpace, NULL, 5580 kStackUnwindSpace, NULL,
5580 MemOperand(fp, 6 * kPointerSize), NULL); 5581 MemOperand(fp, 6 * kPointerSize), NULL);
5581 } 5582 }
5582 5583
5583 5584
5584 #undef __ 5585 #undef __
5585 } 5586 }
5586 } // namespace v8::internal 5587 } // namespace v8::internal
5587 5588
5588 #endif // V8_TARGET_ARCH_PPC 5589 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698