home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / lib_se / native_jvm_invokestatic.e < prev    next >
Text File  |  1999-06-05  |  2KB  |  73 lines

  1. --          This file is part of SmallEiffel The GNU Eiffel Compiler.
  2. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  3. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr
  4. --                       http://SmallEiffel.loria.fr
  5. -- SmallEiffel is  free  software;  you can  redistribute it and/or modify it
  6. -- under the terms of the GNU General Public License as published by the Free
  7. -- Software  Foundation;  either  version  2, or (at your option)  any  later
  8. -- version. SmallEiffel is distributed in the hope that it will be useful,but
  9. -- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. -- or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU General Public License
  11. -- for  more  details.  You  should  have  received a copy of the GNU General
  12. -- Public  License  along  with  SmallEiffel;  see the file COPYING.  If not,
  13. -- write to the  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. -- Boston, MA 02111-1307, USA.
  15. --
  16. class NATIVE_JVM_INVOKESTATIC
  17.  
  18. inherit NATIVE_JVM;
  19.  
  20. feature
  21.  
  22.    language_name: STRING is
  23.       do
  24.          Result := fz_jvm_invokestatic;
  25.       end;
  26.  
  27.    use_current(er: EXTERNAL_ROUTINE): BOOLEAN is
  28.       do
  29.       end;
  30.  
  31.    stupid_switch(name: STRING): BOOLEAN is
  32.       do
  33.          Result := true;
  34.       end;
  35.  
  36. feature
  37.  
  38.    jvm_mapping_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  39.       local
  40.          space, idx: INTEGER;
  41.          ca: like code_attribute;
  42.       do
  43.          ca := code_attribute;
  44.          jvm.drop_target;
  45.          space := jvm.push_arguments;
  46.          idx := idx_methodref(rf8.base_feature);
  47.          space := rf8.result_type.jvm_stack_space - space;
  48.          ca.opcode_invokestatic(idx,space);
  49.       end;
  50.  
  51.    jvm_define_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  52.       do
  53.       end;
  54.  
  55.    jvm_mapping_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  56.       do
  57.       end;
  58.  
  59.    jvm_define_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  60.       do
  61.       end;
  62.  
  63.    jvm_add_method_for_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  64.       do
  65.       end;
  66.  
  67.    jvm_add_method_for_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  68.       do
  69.       end;
  70.  
  71. end -- NATIVE_JVM_INVOKESTATIC
  72.  
  73.