src/share/vm/c1/c1_Runtime1.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7008809 Sdiff src/share/vm/c1

src/share/vm/c1/c1_Runtime1.hpp

Print this page


   1 /*
   2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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  *


 126   static OopMapSet* generate_stub_call(StubAssembler* sasm, Register result, address entry,
 127                                        Register arg1 = noreg, Register arg2 = noreg, Register arg3 = noreg);
 128 
 129   // runtime entry points
 130   static void new_instance    (JavaThread* thread, klassOopDesc* klass);
 131   static void new_type_array  (JavaThread* thread, klassOopDesc* klass, jint length);
 132   static void new_object_array(JavaThread* thread, klassOopDesc* klass, jint length);
 133   static void new_multi_array (JavaThread* thread, klassOopDesc* klass, int rank, jint* dims);
 134 
 135   static address counter_overflow(JavaThread* thread, int bci, methodOopDesc* method);
 136 
 137   static void unimplemented_entry   (JavaThread* thread, StubID id);
 138 
 139   static address exception_handler_for_pc(JavaThread* thread);
 140   static void post_jvmti_exception_throw(JavaThread* thread);
 141 
 142   static void throw_range_check_exception(JavaThread* thread, int index);
 143   static void throw_index_exception(JavaThread* thread, int index);
 144   static void throw_div0_exception(JavaThread* thread);
 145   static void throw_null_pointer_exception(JavaThread* thread);
 146   static void throw_class_cast_exception(JavaThread* thread, oopDesc* obect);
 147   static void throw_incompatible_class_change_error(JavaThread* thread);
 148   static void throw_array_store_exception(JavaThread* thread);
 149 
 150   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 151   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 152 
 153   static int access_field_patching(JavaThread* thread);
 154   static int move_klass_patching(JavaThread* thread);
 155 
 156   static void patch_code(JavaThread* thread, StubID stub_id);
 157 
 158  public:
 159   // initialization
 160   static void initialize(BufferBlob* blob);
 161   static void initialize_pd();
 162 
 163   // stubs
 164   static CodeBlob* blob_for (StubID id);
 165   static address   entry_for(StubID id)          { return blob_for(id)->code_begin(); }
 166   static const char* name_for (StubID id);
 167   static const char* name_for_address(address entry);
 168 
   1 /*
   2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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  *


 126   static OopMapSet* generate_stub_call(StubAssembler* sasm, Register result, address entry,
 127                                        Register arg1 = noreg, Register arg2 = noreg, Register arg3 = noreg);
 128 
 129   // runtime entry points
 130   static void new_instance    (JavaThread* thread, klassOopDesc* klass);
 131   static void new_type_array  (JavaThread* thread, klassOopDesc* klass, jint length);
 132   static void new_object_array(JavaThread* thread, klassOopDesc* klass, jint length);
 133   static void new_multi_array (JavaThread* thread, klassOopDesc* klass, int rank, jint* dims);
 134 
 135   static address counter_overflow(JavaThread* thread, int bci, methodOopDesc* method);
 136 
 137   static void unimplemented_entry   (JavaThread* thread, StubID id);
 138 
 139   static address exception_handler_for_pc(JavaThread* thread);
 140   static void post_jvmti_exception_throw(JavaThread* thread);
 141 
 142   static void throw_range_check_exception(JavaThread* thread, int index);
 143   static void throw_index_exception(JavaThread* thread, int index);
 144   static void throw_div0_exception(JavaThread* thread);
 145   static void throw_null_pointer_exception(JavaThread* thread);
 146   static void throw_class_cast_exception(JavaThread* thread, oopDesc* object);
 147   static void throw_incompatible_class_change_error(JavaThread* thread);
 148   static void throw_array_store_exception(JavaThread* thread, oopDesc* object);
 149 
 150   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 151   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 152 
 153   static int access_field_patching(JavaThread* thread);
 154   static int move_klass_patching(JavaThread* thread);
 155 
 156   static void patch_code(JavaThread* thread, StubID stub_id);
 157 
 158  public:
 159   // initialization
 160   static void initialize(BufferBlob* blob);
 161   static void initialize_pd();
 162 
 163   // stubs
 164   static CodeBlob* blob_for (StubID id);
 165   static address   entry_for(StubID id)          { return blob_for(id)->code_begin(); }
 166   static const char* name_for (StubID id);
 167   static const char* name_for_address(address entry);
 168 
src/share/vm/c1/c1_Runtime1.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File