<https://webkit.org/b/119742> REGRESSION(FTL): Fix register usage in mips implementat...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Aug 2013 11:02:34 +0000 (11:02 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Aug 2013 11:02:34 +0000 (11:02 +0000)
Patch by Balazs Kilvady <kilvadyb@homejinni.com> on 2013-08-16
Reviewed by Allan Sandfeld Jensen.

ctiVMHandleException must jump/return using register ra (r31).

* jit/JITStubsMIPS.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154173 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/JITStubsMIPS.h

index 597c0c3221ab85576e797472b11cc91cb19d29c3..7c84777bf296143daa32df6f35bbd3c4b4d29707 100644 (file)
@@ -1,3 +1,13 @@
+2013-08-16  Balazs Kilvady  <kilvadyb@homejinni.com>
+
+        <https://webkit.org/b/119742> REGRESSION(FTL): Fix register usage in mips implementation of ctiVMHandleException
+
+        Reviewed by Allan Sandfeld Jensen.
+
+        ctiVMHandleException must jump/return using register ra (r31).
+
+        * jit/JITStubsMIPS.h:
+
 2013-08-16  Julien Brianceau  <jbrianceau@nds.com>
 
         <https://webkit.org/b/119879> Fix sh4 build after r154156.
index 9af4256244076d0f72645921f09c195d6f3761bc..7351697c1ff7a7f01711fc83f95e341feab7e976 100644 (file)
@@ -149,9 +149,9 @@ SYMBOL_STRING(ctiVMHandleException) ":" "\n"
     "move  $4,$16" "\n"
 #endif
     // When cti_vm_handle_exception returns, v0 has callFrame and v1 has handler address
+    "move  $31,$3" "\n"
+    "jr    $31" "\n"
     "move  $16,$2 " "\n"
-    "jr    $3" "\n"
-    "nop" "\n"
 ".set reorder" "\n"
 ".set macro" "\n"
 ".end " SYMBOL_STRING(ctiVMHandleException) "\n"