]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve dotfunc
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 14 Sep 2020 16:13:07 +0000 (18:13 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 14 Sep 2020 16:13:07 +0000 (18:13 +0200)
README.md
src/vm/vm.c

index 9085bf2f8b1f53a7a65f89b22a8aecc74a58c715..9ad2ed6e90465b2e856d6c211eb8b23ea932c276 100644 (file)
--- a/README.md
+++ b/README.md
@@ -115,3 +115,5 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
 This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
 
 >    NOTE: if you should be on the list of contributors but we forgot you, don't be shy and let us know!
+
+qsdqisjdqls
index aa7cc19cce6d7c287d5ad2f46e195661defae59a..934e4fa5ca3a2842fd7f72b8fb7944ca1279ec25 100644 (file)
@@ -836,11 +836,14 @@ staticother:
   reg += VAL2;
   DISPATCH()
 dotfunc:
+PRAGMA_PUSH()
+  *(VM_Code*)(reg) = ((Func)vector_at((*(M_Object*)(reg-SZ_INT))->vtable, VAL))->code;
   reg += SZ_INT;
-  VAL2 = SZ_INT;
+PRAGMA_POP()
+  DISPATCH()
 dotstaticfunc:
 PRAGMA_PUSH()
-  *(VM_Code*)(reg-SZ_INT) = ((Func)vector_at((*(M_Object*)(reg-SZ_INT-VAL2))->vtable, VAL))->code;
+  *(VM_Code*)(reg-SZ_INT) = ((Func)vector_at((*(M_Object*)(reg-SZ_INT))->vtable, VAL))->code;
 PRAGMA_POP()
   DISPATCH()
 gcini: