src/share/vm/interpreter/bytecodeInterpreter.hpp

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 




















  25 #ifdef CC_INTERP
  26 
  27 // CVM definitions find hotspot equivalents...
  28 
  29 union VMJavaVal64 {
  30     jlong   l;
  31     jdouble d;
  32     uint32_t      v[2];
  33 };
  34 
  35 
  36 typedef class BytecodeInterpreter* interpreterState;
  37 
  38 struct call_message {
  39     class methodOopDesc* _callee;    /* method to call during call_method request */
  40     address   _callee_entry_point;   /* address to jump to for call_method request */
  41     int       _bcp_advance;          /* size of the invoke bytecode operation */
  42 };
  43 
  44 struct osr_message {


 541 static void set_locals_object(intptr_t *locals, oop value, int offset);
 542 static void set_locals_double(intptr_t *locals, jdouble value, int offset);
 543 static void set_locals_long(intptr_t *locals, jlong value, int offset);
 544 static void set_locals_double_from_addr(intptr_t *locals,
 545                                    address addr, int offset);
 546 static void set_locals_long_from_addr(intptr_t *locals,
 547                                    address addr, int offset);
 548 
 549 static void astore(intptr_t* topOfStack, int stack_offset,
 550                    intptr_t* locals,     int locals_offset);
 551 
 552 // Support for dup and swap
 553 static void copy_stack_slot(intptr_t *tos, int from_offset, int to_offset);
 554 
 555 #ifndef PRODUCT
 556 static const char* C_msg(BytecodeInterpreter::messages msg);
 557 void print();
 558 #endif // PRODUCT
 559 
 560     // Platform fields/methods
 561 # include "incls/_bytecodeInterpreter_pd.hpp.incl"









 562 
 563 }; // BytecodeInterpreter
 564 
 565 #endif // CC_INTERP




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_INTERPRETER_BYTECODEINTERPRETER_HPP
  26 #define SHARE_VM_INTERPRETER_BYTECODEINTERPRETER_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "oops/methodDataOop.hpp"
  30 #include "oops/methodOop.hpp"
  31 #include "runtime/basicLock.hpp"
  32 #include "runtime/frame.hpp"
  33 #include "runtime/globals.hpp"
  34 #include "utilities/globalDefinitions.hpp"
  35 #ifdef TARGET_ARCH_x86
  36 # include "bytes_x86.hpp"
  37 #endif
  38 #ifdef TARGET_ARCH_sparc
  39 # include "bytes_sparc.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_zero
  42 # include "bytes_zero.hpp"
  43 #endif
  44 
  45 #ifdef CC_INTERP
  46 
  47 // CVM definitions find hotspot equivalents...
  48 
  49 union VMJavaVal64 {
  50     jlong   l;
  51     jdouble d;
  52     uint32_t      v[2];
  53 };
  54 
  55 
  56 typedef class BytecodeInterpreter* interpreterState;
  57 
  58 struct call_message {
  59     class methodOopDesc* _callee;    /* method to call during call_method request */
  60     address   _callee_entry_point;   /* address to jump to for call_method request */
  61     int       _bcp_advance;          /* size of the invoke bytecode operation */
  62 };
  63 
  64 struct osr_message {


 561 static void set_locals_object(intptr_t *locals, oop value, int offset);
 562 static void set_locals_double(intptr_t *locals, jdouble value, int offset);
 563 static void set_locals_long(intptr_t *locals, jlong value, int offset);
 564 static void set_locals_double_from_addr(intptr_t *locals,
 565                                    address addr, int offset);
 566 static void set_locals_long_from_addr(intptr_t *locals,
 567                                    address addr, int offset);
 568 
 569 static void astore(intptr_t* topOfStack, int stack_offset,
 570                    intptr_t* locals,     int locals_offset);
 571 
 572 // Support for dup and swap
 573 static void copy_stack_slot(intptr_t *tos, int from_offset, int to_offset);
 574 
 575 #ifndef PRODUCT
 576 static const char* C_msg(BytecodeInterpreter::messages msg);
 577 void print();
 578 #endif // PRODUCT
 579 
 580     // Platform fields/methods
 581 #ifdef TARGET_ARCH_x86
 582 # include "bytecodeInterpreter_x86.hpp"
 583 #endif
 584 #ifdef TARGET_ARCH_sparc
 585 # include "bytecodeInterpreter_sparc.hpp"
 586 #endif
 587 #ifdef TARGET_ARCH_zero
 588 # include "bytecodeInterpreter_zero.hpp"
 589 #endif
 590 
 591 
 592 }; // BytecodeInterpreter
 593 
 594 #endif // CC_INTERP
 595 
 596 #endif // SHARE_VM_INTERPRETER_BYTECODEINTERPRETER_HPP