aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-08 16:21:14 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-08 16:21:14 -0700
commit2ad7b1037ceb2d5ec5457df8c1365694469dcab2 (patch)
tree20a1a927d277d2114be374c7a02d043fe02a2e54 /src/runtime.js
parent9c613ffaac19bcc718c0c25e85fde7a3ec11f27c (diff)
parentdeb49776cf90ceb1033c741b568423d6a3bb5d46 (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.js9
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;
},