aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorDan Gohman <sunfish@google.com>2014-02-20 17:24:22 -0800
committerDan Gohman <sunfish@google.com>2014-02-25 11:58:52 -0800
commit264a5a91c450b510bcee1d257372ee5d9750879b (patch)
tree4f6f79a60d1b20d5f81bdae873b548cc55644a59 /src/runtime.js
parente6f7d1edbe66e4ee676413de57a96222add7a3fd (diff)
Introduce the asmjs-unknown-emscripten target triple.
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime.js b/src/runtime.js
index fecd3b68..97de7473 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -185,10 +185,10 @@ var Runtime = {
// type can be a native type or a struct (or null, for structs we only look at size here)
getAlignSize: function(type, size, vararg) {
// we align i64s and doubles on 64-bit boundaries, unlike x86
-#if TARGET_LE32 == 1
+#if TARGET_ASMJS_UNKNOWN_EMSCRIPTEN == 1
if (vararg) return 8;
#endif
-#if TARGET_LE32
+#if TARGET_ASMJS_UNKNOWN_EMSCRIPTEN
if (!vararg && (type == 'i64' || type == 'double')) return 8;
if (!type) return Math.min(size, 8); // align structures internally to 64 bits
#endif