From 91fe97626d20328d643ef83de06a94b48505010f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 10 Oct 2012 10:27:04 +0200 Subject: [PATCH] Fix rethrow --- qv4isel_masm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qv4isel_masm.cpp b/qv4isel_masm.cpp index 04b904dc2f..7fffae78f1 100644 --- a/qv4isel_masm.cpp +++ b/qv4isel_masm.cpp @@ -153,10 +153,12 @@ void InstructionSelection::callActivationProperty(IR::Call *call, IR::Temp *resu case IR::Name::builtin_throw: callRuntimeMethod(__qmljs_builtin_throw, result, call->args); break; - case IR::Name::builtin_rethrow: - callRuntimeMethod(__qmljs_builtin_rethrow, result, call->args); + case IR::Name::builtin_rethrow: { + int argc = prepareVariableArguments(call->args); + generateFunctionCall(__qmljs_builtin_rethrow, ContextRegister, result, baseAddressForCallArguments(), TrustedImm32(argc)); return; // we need to return to avoid checking the exceptions } + } } }