< prev index next >

src/hotspot/share/c1/c1_Runtime1.hpp

Print this page
rev 49887 : 8201593: Print array length in ArrayIndexOutOfBoundsException.
Reviewed-by: dholmes, mdoerr
   1 /*
   2  * Copyright (c) 1999, 2013, 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_exception_throw(StubAssembler* sasm, address target, bool has_argument);
 127   static OopMapSet* generate_handle_exception(StubID id, StubAssembler* sasm);
 128   static void       generate_unwind_exception(StubAssembler *sasm);
 129   static OopMapSet* generate_patching(StubAssembler* sasm, address target);
 130 
 131   static OopMapSet* generate_stub_call(StubAssembler* sasm, Register result, address entry,
 132                                        Register arg1 = noreg, Register arg2 = noreg, Register arg3 = noreg);
 133 
 134   // runtime entry points
 135   static void new_instance    (JavaThread* thread, Klass* klass);
 136   static void new_type_array  (JavaThread* thread, Klass* klass, jint length);
 137   static void new_object_array(JavaThread* thread, Klass* klass, jint length);
 138   static void new_multi_array (JavaThread* thread, Klass* klass, int rank, jint* dims);
 139 
 140   static address counter_overflow(JavaThread* thread, int bci, Method* method);
 141 
 142   static void unimplemented_entry   (JavaThread* thread, StubID id);
 143 
 144   static address exception_handler_for_pc(JavaThread* thread);
 145 
 146   static void throw_range_check_exception(JavaThread* thread, int index);
 147   static void throw_index_exception(JavaThread* thread, int index);
 148   static void throw_div0_exception(JavaThread* thread);
 149   static void throw_null_pointer_exception(JavaThread* thread);
 150   static void throw_class_cast_exception(JavaThread* thread, oopDesc* object);
 151   static void throw_incompatible_class_change_error(JavaThread* thread);
 152   static void throw_array_store_exception(JavaThread* thread, oopDesc* object);
 153 
 154   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 155   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 156 
 157   static void deoptimize(JavaThread* thread, jint trap_request);
 158 
 159   static int access_field_patching(JavaThread* thread);
 160   static int move_klass_patching(JavaThread* thread);
 161   static int move_mirror_patching(JavaThread* thread);
 162   static int move_appendix_patching(JavaThread* thread);
 163 
 164   static void patch_code(JavaThread* thread, StubID stub_id);
 165 
 166  public:


   1 /*
   2  * Copyright (c) 1999, 2018, 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_exception_throw(StubAssembler* sasm, address target, bool has_argument);
 127   static OopMapSet* generate_handle_exception(StubID id, StubAssembler* sasm);
 128   static void       generate_unwind_exception(StubAssembler *sasm);
 129   static OopMapSet* generate_patching(StubAssembler* sasm, address target);
 130 
 131   static OopMapSet* generate_stub_call(StubAssembler* sasm, Register result, address entry,
 132                                        Register arg1 = noreg, Register arg2 = noreg, Register arg3 = noreg);
 133 
 134   // runtime entry points
 135   static void new_instance    (JavaThread* thread, Klass* klass);
 136   static void new_type_array  (JavaThread* thread, Klass* klass, jint length);
 137   static void new_object_array(JavaThread* thread, Klass* klass, jint length);
 138   static void new_multi_array (JavaThread* thread, Klass* klass, int rank, jint* dims);
 139 
 140   static address counter_overflow(JavaThread* thread, int bci, Method* method);
 141 
 142   static void unimplemented_entry   (JavaThread* thread, StubID id);
 143 
 144   static address exception_handler_for_pc(JavaThread* thread);
 145 
 146   static void throw_range_check_exception(JavaThread* thread, int index, arrayOopDesc* a);
 147   static void throw_index_exception(JavaThread* thread, int index);
 148   static void throw_div0_exception(JavaThread* thread);
 149   static void throw_null_pointer_exception(JavaThread* thread);
 150   static void throw_class_cast_exception(JavaThread* thread, oopDesc* object);
 151   static void throw_incompatible_class_change_error(JavaThread* thread);
 152   static void throw_array_store_exception(JavaThread* thread, oopDesc* object);
 153 
 154   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 155   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 156 
 157   static void deoptimize(JavaThread* thread, jint trap_request);
 158 
 159   static int access_field_patching(JavaThread* thread);
 160   static int move_klass_patching(JavaThread* thread);
 161   static int move_mirror_patching(JavaThread* thread);
 162   static int move_appendix_patching(JavaThread* thread);
 163 
 164   static void patch_code(JavaThread* thread, StubID stub_id);
 165 
 166  public:


< prev index next >