diff options
author | Adrian Thurston <thurston@complang.org> | 2014-01-08 18:50:58 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-01-08 18:50:58 -0500 |
commit | dce0feb8d1ff51bb586a13dd505ef41a403a3554 (patch) | |
tree | 6a458b57a96ad98ab88483e67e3060bf29b495f0 /src/pdacodegen.cc | |
parent | 71bc493f72d72383314872f60e1b2caff413acf9 (diff) | |
download | colm-dce0feb8d1ff51bb586a13dd505ef41a403a3554.tar.gz |
removed trees and iters from frame info,
Using unified locals array now.
Diffstat (limited to 'src/pdacodegen.cc')
-rw-r--r-- | src/pdacodegen.cc | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/pdacodegen.cc b/src/pdacodegen.cc index bd8fa0a1..904cd423 100644 --- a/src/pdacodegen.cc +++ b/src/pdacodegen.cc @@ -109,38 +109,6 @@ void PdaCodeGen::writeRuntimeData( RuntimeData *runtimeData, PdaTables *pdaTable out << "\n};\n\n"; } - if ( runtimeData->frameInfo[i].treesLen > 0 ) { - out << "static char trees_" << i << "[] = {\n\t"; - - char *block = runtimeData->frameInfo[i].trees; - for ( int j = 0; j < runtimeData->frameInfo[i].treesLen; j++ ) { - out << (long) block[j]; - - if ( j < runtimeData->frameInfo[i].treesLen-1 ) { - out << ", "; - if ( (j+1) % 8 == 0 ) - out << "\n\t"; - } - } - out << "\n};\n\n"; - } - - if ( runtimeData->frameInfo[i].itersLen > 0 ) { - out << "static char iters_" << i << "[] = {\n\t"; - - char *block = runtimeData->frameInfo[i].iters; - for ( int j = 0; j < runtimeData->frameInfo[i].itersLen; j++ ) { - out << (long) block[j]; - - if ( j < runtimeData->frameInfo[i].itersLen-1 ) { - out << ", "; - if ( (j+1) % 8 == 0 ) - out << "\n\t"; - } - } - out << "\n};\n\n"; - } - if ( runtimeData->frameInfo[i].localsLen > 0 ) { out << "static LocalInfo locals_" << i << "[] = {\n\t"; @@ -265,22 +233,6 @@ void PdaCodeGen::writeRuntimeData( RuntimeData *runtimeData, PdaTables *pdaTable out << "0, "; out << runtimeData->frameInfo[i].codeLenWC << ", "; - /* trees */ - if ( runtimeData->frameInfo[i].treesLen > 0 ) - out << "trees_" << i << ", "; - else - out << "0, "; - - out << runtimeData->frameInfo[i].treesLen << ", "; - - /* iters. */ - if ( runtimeData->frameInfo[i].itersLen > 0 ) - out << "iters_" << i << ", "; - else - out << "0, "; - - out << runtimeData->frameInfo[i].itersLen << ", "; - /* locals. */ if ( runtimeData->frameInfo[i].localsLen > 0 ) out << "locals_" << i << ", "; |