diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-06-20 14:30:03 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-06-21 09:16:46 +0000 |
commit | 8a0dad67ae16a6b49e40de37ea406ee7bf3c64d2 (patch) | |
tree | 042cd85b052cc82c9e7c486330515fef579f728c /src/qml/compiler/qv4instr_moth_p.h | |
parent | 7daf31f2858d6f77e7e5a3be1146c43552fcb4e8 (diff) |
Fix exception handling
Fix all exception handling related test failures
in test262.
Change-Id: Iba50238627c31705a4878b43abbb8f20f0ecee88
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4instr_moth_p.h')
-rw-r--r-- | src/qml/compiler/qv4instr_moth_p.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4instr_moth_p.h b/src/qml/compiler/qv4instr_moth_p.h index 270950eeb9..6625018443 100644 --- a/src/qml/compiler/qv4instr_moth_p.h +++ b/src/qml/compiler/qv4instr_moth_p.h @@ -108,8 +108,8 @@ QT_BEGIN_NAMESPACE F(CallGlobalLookup, callGlobalLookup) \ F(SetExceptionHandler, setExceptionHandler) \ F(CallBuiltinThrow, callBuiltinThrow) \ - F(HasException, hasException) \ - F(SetExceptionFlag, setExceptionFlag) \ + F(GetException, getException) \ + F(SetException, setException) \ F(CallBuiltinUnwindException, callBuiltinUnwindException) \ F(CallBuiltinPushCatchScope, callBuiltinPushCatchScope) \ F(CallBuiltinPushScope, callBuiltinPushScope) \ @@ -500,12 +500,13 @@ union Instr MOTH_INSTR_HEADER Param arg; }; - struct instr_hasException { + struct instr_getException { MOTH_INSTR_HEADER Param result; }; - struct instr_setExceptionFlag { + struct instr_setException { MOTH_INSTR_HEADER + Param exception; }; struct instr_callBuiltinUnwindException { MOTH_INSTR_HEADER @@ -861,8 +862,8 @@ union Instr instr_callActivationProperty callActivationProperty; instr_callGlobalLookup callGlobalLookup; instr_callBuiltinThrow callBuiltinThrow; - instr_hasException hasException; - instr_setExceptionFlag setExceptionFlag; + instr_getException getException; + instr_setException setException; instr_setExceptionHandler setExceptionHandler; instr_callBuiltinUnwindException callBuiltinUnwindException; instr_callBuiltinPushCatchScope callBuiltinPushCatchScope; |