diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-27 16:03:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-27 16:03:56 -0800 |
commit | feae008076ae51de0de9483ed0b4f6491392a390 (patch) | |
tree | 560eaafa943f3bf4be5ca881e4e3d95e0f8411fb /src | |
parent | 27a9b831570be08568633ac8bfde416c94b3a379 (diff) |
move printing of type info to right position
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index ae86e80b..4c233481 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -32,11 +32,6 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { var pre = processMacros(preprocess(read(preFile).replace('{{RUNTIME}}', getRuntime()), CONSTANTS)); print(pre); print('Runtime.QUANTUM_SIZE = ' + QUANTUM_SIZE); - if (RUNTIME_TYPE_INFO) { - Types.cleanForRuntime(); - print('Runtime.typeInfo = ' + JSON.stringify(Types.types)); - print('Runtime.structMetadata = ' + JSON.stringify(Types.structMetadata)); - } } // Add additional necessary items for the main pass @@ -1088,7 +1083,11 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { // "Final shape that will be created"). var generated = itemsDict.type.concat(itemsDict.GlobalVariableStub).concat(itemsDict.functionStub); generated.forEach(function(item) { print(indentify(item.JS || '', 2)); }); - + if (RUNTIME_TYPE_INFO) { + Types.cleanForRuntime(); + print('Runtime.typeInfo = ' + JSON.stringify(Types.types)); + print('Runtime.structMetadata = ' + JSON.stringify(Types.structMetadata)); + } var postFile = BUILD_AS_SHARED_LIB ? 'postamble_sharedlib.js' : 'postamble.js'; var postParts = processMacros(preprocess(read(postFile), CONSTANTS)).split('{{GLOBAL_VARS}}'); print(postParts[0]); |