--- parser3/src/main/compile.y 2009/05/01 11:42:14 1.236 +++ parser3/src/main/compile.y 2009/05/09 10:45:43 1.237 @@ -5,7 +5,7 @@ Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.236 2009/05/01 11:42:14 misha Exp $ + $Id: compile.y,v 1.237 2009/05/09 10:45:43 misha Exp $ */ /** @@ -345,15 +345,13 @@ name_without_curly_rdive_read: name_with } else { #ifdef OPTIMIZE_BYTECODE_GET_ELEMENT size_t count=diving_code->count(); - if(count==4 || (count>4 && PC.in_call_value)){ // optimisations for popular simple cases + if(count==4){ // optimisations for popular simple cases O(*yyval, - (count==4 && PC.in_call_value) // ^call + (PC.in_call_value) // ^call ? OP::OP_VALUE__GET_ELEMENT_OR_OPERATOR // OP_VALUE+origin+string+OP_GET_ELEMENT -> OP_VALUE__GET_ELEMENT_OR_OPERATOR+origin+string : OP::OP_VALUE__GET_ELEMENT // OP_VALUE+origin+string+OP_GET_ELEMENT -> OP_VALUE__GET_ELEMENT+origin+string ); P(*$$, *diving_code, 1/*offset*/, 2/*limit*/); // copy origin+value - if(count>4) - P(*$$, *diving_code, 4/*offset*/); // copy tail } else { O(*yyval, OP::OP_WITH_READ); /* stack: starting context */ P(*$$, *diving_code);