aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-08 17:16:34 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-08 17:16:34 -0800
commit5a74e784b2feac3268dedd17d425a26b0437452d (patch)
treeb47f563f8797225daa43190f0042c466a8c990f6 /src
parenta92111aaebcc90d9ec1c798b5c727c256b34a1e7 (diff)
remove workaround with not indexizing aliases
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index a2ca03eb..45177c3f 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -341,7 +341,7 @@ function JSify(data, functionsOnly, givenFunctions) {
var ret = [item];
item.JS = 'var ' + item.ident + ';';
// Set the actual value in a postset, since it may be a global variable. We also order by dependencies there
- var value = finalizeLLVMParameter(item.value, true); // do *not* indexize functions here
+ var value = finalizeLLVMParameter(item.value);
ret.push({
intertype: 'GlobalVariablePostSet',
ident: item.ident,
@@ -632,10 +632,6 @@ function JSify(data, functionsOnly, givenFunctions) {
var local = funcData.variables[ident];
if (local) return local;
var global = Variables.globals[ident];
- // FIXME: Currently, if something is an alias, we assume it is not a simple variable, so no need for
- // FUNCTION_TABLE when calling it (which we do need for a normal simple global variable). In
- // theory though an alias could be simple, we should probably check the type if this ever becomes a problem.
- if (global && global.alias) global = null;
return global || null;
}