diff options
author | Fraser Adams <fraser.adams@blueyonder.co.uk> | 2014-05-07 20:35:40 +0100 |
---|---|---|
committer | Fraser Adams <fraser.adams@blueyonder.co.uk> | 2014-05-07 20:35:40 +0100 |
commit | deb49776cf90ceb1033c741b568423d6a3bb5d46 (patch) | |
tree | 963afba4be80c1759273a015ef07242e414df243 | |
parent | 733dda0061bef045a99dd15db8b17ea3540db289 (diff) |
add Runtime.setTempRet0 method for symmetry
-rwxr-xr-x | emscripten.py | 2 | ||||
-rw-r--r-- | src/runtime.js | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py index 07f1249e..94c6b61c 100755 --- a/emscripten.py +++ b/emscripten.py @@ -651,6 +651,7 @@ function getTempRet%d() { Runtime.stackAlloc = asm['stackAlloc']; Runtime.stackSave = asm['stackSave']; Runtime.stackRestore = asm['stackRestore']; +Runtime.setTempRet0 = asm['setTempRet0']; Runtime.getTempRet0 = asm['getTempRet0']; ''') @@ -1232,6 +1233,7 @@ function getTempRet0() { Runtime.stackAlloc = asm['stackAlloc']; Runtime.stackSave = asm['stackSave']; Runtime.stackRestore = asm['stackRestore']; +Runtime.setTempRet0 = asm['setTempRet0']; Runtime.getTempRet0 = asm['getTempRet0']; ''') diff --git a/src/runtime.js b/src/runtime.js index 3974295d..4466a308 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -99,6 +99,9 @@ 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; }, |