--- parser3/src/main/compile_tools.C 2015/04/02 22:18:26 1.71 +++ parser3/src/main/compile_tools.C 2016/05/24 11:55:14 1.73 @@ -1,7 +1,7 @@ /** @file Parser: compiler support helper functions. - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ @@ -13,7 +13,7 @@ #include "pa_vdouble.h" #include "pa_vmethod_frame.h" -volatile const char * IDENT_COMPILE_TOOLS_C="$Id: compile_tools.C,v 1.71 2015/04/02 22:18:26 moko Exp $" IDENT_COMPILE_TOOLS_H; +volatile const char * IDENT_COMPILE_TOOLS_C="$Id: compile_tools.C,v 1.73 2016/05/24 11:55:14 moko Exp $" IDENT_COMPILE_TOOLS_H; Value* LA2V(ArrayOperation& literal_string_array, int offset, OP::OPCODE code) { return literal_string_array[offset+0].code==code?literal_string_array[offset+2/*skip opcode&origin*/].value @@ -46,7 +46,7 @@ bool change_first(ArrayOperation& opcode bool maybe_make_self(ArrayOperation& opcodes, ArrayOperation& diving_code, size_t divine_count){ const String* first_name=LA2S(diving_code); - if(first_name && *first_name==SELF_ELEMENT_NAME){ + if(first_name && *first_name==*Symbols::self){ #ifdef OPTIMIZE_BYTECODE_GET_SELF_ELEMENT if( divine_count>=8