note description: "Summary description for {AUT_SHARED_INTERPRETER_INFO}." author: "" date: "$Date$" revision: "$Revision$" deferred class AUT_SHARED_INTERPRETER_INFO feature -- Access system: SYSTEM_I -- Sysetm deferred ensure result_attached: Result /= Void end compute_interpreter_root_class -- Try assigning `interpreter_root_class'. local l_class: CLASS_I do interpreter_root_class_cell.put (Void) if attached {CONF_CLUSTER} system.eifgens_cluster as l_cluster then l_class := system.universe.class_named (interpreter_root_class_name, l_cluster) if l_class /= Void and then l_class.is_compiled then interpreter_root_class_cell.put (l_class.compiled_class) end end end interpreter_class: detachable CLASS_C -- Compiled representation of "ITP_INTERPRETER" local l_parents: FIXED_LIST [CLASS_C] do if attached {CLASS_C} interpreter_root_class as l_root then l_parents := l_root.parents_classes if not l_parents.is_empty then Result := l_parents.first end end end interpreter_root_class: detachable CLASS_C -- Compiled representation of "ITP_INTERPRETER_ROOT" do Result := interpreter_root_class_cell.item end interpreter_root_class_cell: CELL [detachable CLASS_C] -- Once per thread cell for `interpreter_root_class' once create Result.put (Void) end interpreter_class_name: STRING = "ITP_INTERPRETER" -- Name of interpreter class interpreter_root_class_name: STRING = "ITP_INTERPRETER_ROOT" -- Name of root lass for interpreter interpreter_root_feature_name: STRING = "execute" -- Name of root feature for interpreter feature_name_for_byte_code_injection: STRING = "execute_byte_code" -- Name of feature whose byte code is to be injected. feature_for_byte_code_injection: FEATURE_I -- Feature whose byte-code is to be injected do Result := interpreter_root_class.feature_named (feature_name_for_byte_code_injection) ensure result_attached: Result /= Void end interpreter_related_classes: DS_HASH_SET [STRING] -- List of names of classes which interpreter rely on, -- Make sure those classes are not tested. -- Fixme: Write once create Result.make (10) Result.set_equality_tester ( create {AGENT_BASED_EQUALITY_TESTER [STRING]}.make ( agent (str1, str2: STRING): BOOLEAN do Result := str1.is_equal (str2) end)) Result.force_last ("ITP_INTERPRETER") Result.force_last ("ITP_REQUEST_PARSER") Result.force_last ("ITP_STORE") Result.force_last ("ITP_EXPRESSION") Result.force_last ("ITP_CONSTANT") Result.force_last ("ITP_EXPRESSION_PROCESSOR") Result.force_last ("ITP_VARIABLE") Result.force_last ("ERL_LIST") ensure result_attached: Result /= Void end note copyright: "Copyright (c) 1984-2009, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end