Commit graph

12 commits

Author SHA1 Message Date
E Sequeira
da09c300a5
Revert "[OpJumpFalse, OpAndJump, OpOrJump, OpJump], these four instructions have been changed to use 4 bytes to avoid precision loss and panic when the number of instructions exceeds the maximum of 16 bits (65535) (#433)" (#436)
This reverts commit 18424deb5a.
2023-12-05 20:52:53 +00:00
wlxwlxwlx
18424deb5a
[OpJumpFalse, OpAndJump, OpOrJump, OpJump], these four instructions have been changed to use 4 bytes to avoid precision loss and panic when the number of instructions exceeds the maximum of 16 bits (65535) (#433)
Co-authored-by: 王录祥 <wanglx@smartsteps.com>
2023-12-05 19:30:50 +00:00
I Putu Susila
a419bfc93a
fix slice low/high index shadowing variables in vm (#394) 2022-09-26 08:19:00 +01:00
shiyuge
8a3f5bdb11
fix: copy SourceMap in vm OpClosure branch (#392) 2022-09-24 16:48:53 +01:00
Ralph Caraveo III
d9b300cb70
For the OpMap VM instruction, since numElements is known just use the capacity hint. (#347) 2021-09-21 13:47:21 +01:00
Ozan Hacıbekiroğlu
7834251c84
spread last call argument v2 (#302) 2020-06-08 18:54:24 +02:00
daniel
3b53bc4f6d
Revert "remove callable args alloc (#259)" (#260)
This reverts commit b75bda7da7.
2020-03-15 11:19:02 -07:00
Ozan Hacıbekiroğlu
b75bda7da7
remove callable args alloc (#259) 2020-03-15 17:45:40 +01:00
Ozan HACIBEKİROĞLU
0854675469
update vm to raise wrapped runtime errors (#247)
* update vm to raise wrapped runtime errors

special errors returned from custom builtin modules can be identified easily by wrapping and using errors package's Is() and As() method.

* added test for runtime errors
2020-02-16 04:46:53 +01:00
daniel
d5b24138d3
add go module v2 (#244) 2019-12-29 13:38:51 -08:00
daniel
a9a233a750
fix internal package issue (#241)
* fix internal package issue

* ExampleSimple -> Example
2019-12-24 07:42:30 -08:00
daniel
c88a5f506e
some code clean up (#237) 2019-12-20 11:40:38 -08:00
Renamed from runtime/vm.go (Browse further)