From e59333c486a97132698a1232ffdb1f5ae048d2b6 Mon Sep 17 00:00:00 2001 From: Fraser Adams Date: Thu, 24 Apr 2014 08:41:41 +0100 Subject: Committing the actual change now --- src/runtime.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime.js') diff --git a/src/runtime.js b/src/runtime.js index 63610d3b..3974295d 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -96,6 +96,12 @@ 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. + getTempRet0: function() { + return tempRet0; + }, stackSave: function() { return STACKTOP; }, -- cgit v1.2.3-18-g5258 From deb49776cf90ceb1033c741b568423d6a3bb5d46 Mon Sep 17 00:00:00 2001 From: Fraser Adams Date: Wed, 7 May 2014 20:35:40 +0100 Subject: add Runtime.setTempRet0 method for symmetry --- src/runtime.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/runtime.js') 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; }, -- cgit v1.2.3-18-g5258