Fix rethrow

This commit is contained in:
Simon Hausmann 2012-10-10 10:27:04 +02:00
parent a7c59f7df6
commit 91fe97626d
1 changed files with 4 additions and 2 deletions

View File

@ -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
}
}
}
}