| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index ca4e824d915b327fb65cc92382091174b2779331..f4dca00ce6c87aed4df2877fb8ad6344b8e3ffd8 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -4348,6 +4348,34 @@ void FullCodeGenerator::ExitFinallyBlock() {
|
|
|
| #undef __
|
|
|
| +#define __ ACCESS_MASM(masm())
|
| +
|
| +FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
|
| + int* stack_depth,
|
| + int* context_length) {
|
| + // The macros used here must preserve the result register.
|
| +
|
| + // Because the handler block contains the context of the finally
|
| + // code, we can restore it directly from there for the finally code
|
| + // rather than iteratively unwinding contexts via their previous
|
| + // links.
|
| + __ Drop(*stack_depth); // Down to the handler block.
|
| + if (*context_length > 0) {
|
| + // Restore the context to its dedicated register and the stack.
|
| + __ mov(esi, Operand(esp, StackHandlerConstants::kContextOffset));
|
| + __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), esi);
|
| + }
|
| + __ PopTryHandler();
|
| + __ call(finally_entry_);
|
| +
|
| + *stack_depth = 0;
|
| + *context_length = 0;
|
| + return previous_;
|
| +}
|
| +
|
| +
|
| +#undef __
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_TARGET_ARCH_IA32
|
|
|