--- parser3/src/main/compile_tools.C 2023/09/26 20:49:09 1.82 +++ parser3/src/main/compile_tools.C 2026/04/25 13:38:46 1.85 @@ -1,7 +1,7 @@ /** @file Parser: compiler support helper functions. - Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ @@ -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.82 2023/09/26 20:49:09 moko Exp $" IDENT_COMPILE_TOOLS_H; +volatile const char * IDENT_COMPILE_TOOLS_C="$Id: compile_tools.C,v 1.85 2026/04/25 13:38:46 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 @@ -72,7 +72,6 @@ bool maybe_make_self(ArrayOperation& opc return false; } -#ifdef OPTIMIZE_BYTECODE_GET_ELEMENT__SPECIAL bool maybe_append_simple_diving_code(ArrayOperation& code, ArrayOperation& diving_code){ if( diving_code.count()==3 @@ -86,6 +85,7 @@ bool maybe_append_simple_diving_code(Arr } } +#ifdef OPTIMIZE_BYTECODE_GET_ELEMENT__SPECIAL bool is_special_element(ArrayOperation& opcodes){ const String* name=LA2S(opcodes); return name && ( SYMBOLS_EQ(*name,CLASS_SYMBOL) || SYMBOLS_EQ(*name,CLASS_NAME_SYMBOL) );