From dce0feb8d1ff51bb586a13dd505ef41a403a3554 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Wed, 8 Jan 2014 18:50:58 -0500 Subject: removed trees and iters from frame info, Using unified locals array now. --- src/pdacodegen.cc | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'src/pdacodegen.cc') 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 << ", "; -- cgit v1.2.1