diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-08 16:21:14 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-08 16:21:14 -0700 |
commit | 2ad7b1037ceb2d5ec5457df8c1365694469dcab2 (patch) | |
tree | 20a1a927d277d2114be374c7a02d043fe02a2e54 /src/runtime.js | |
parent | 9c613ffaac19bcc718c0c25e85fde7a3ec11f27c (diff) | |
parent | deb49776cf90ceb1033c741b568423d6a3bb5d46 (diff) |
Merge pull request #2311 from fadams/fix-64bit-long-return-issue
Fix 64bit long return issue
Diffstat (limited to 'src/runtime.js')
-rw-r--r-- | src/runtime.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js index 63610d3b..4466a308 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -96,6 +96,15 @@ function unInline(name_, params) { } var Runtime = { + // When a 64 bit long is returned from a compiled function the least significant + // 32 bit word is passed in the return value, but the most significant 32 bit + // word is placed in tempRet0. This provides an accessor for that value. + setTempRet0: function(value) { + tempRet0 = value; + }, + getTempRet0: function() { + return tempRet0; + }, stackSave: function() { return STACKTOP; }, |