src/hotspot/share/jvmci/jvmciCodeInstaller.hpp
changeset 49192 6734eeef4283
parent 48487 abf1d797e380
child 50729 7755c93d3923
equal deleted inserted replaced
49191:13378aa8527e 49192:6734eeef4283
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   186   void pd_patch_DataSectionReference(int pc_offset, int data_offset, TRAPS);
   186   void pd_patch_DataSectionReference(int pc_offset, int data_offset, TRAPS);
   187   void pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination, TRAPS);
   187   void pd_relocate_ForeignCall(NativeInstruction* inst, jlong foreign_call_destination, TRAPS);
   188   void pd_relocate_JavaMethod(CodeBuffer &cbuf, Handle method, jint pc_offset, TRAPS);
   188   void pd_relocate_JavaMethod(CodeBuffer &cbuf, Handle method, jint pc_offset, TRAPS);
   189   void pd_relocate_poll(address pc, jint mark, TRAPS);
   189   void pd_relocate_poll(address pc, jint mark, TRAPS);
   190 
   190 
   191   objArrayOop sites() { return (objArrayOop) JNIHandles::resolve(_sites_handle); }
   191   objArrayOop sites();
   192   arrayOop code() { return (arrayOop) JNIHandles::resolve(_code_handle); }
   192   arrayOop code();
   193   arrayOop data_section() { return (arrayOop) JNIHandles::resolve(_data_section_handle); }
   193   arrayOop data_section();
   194   objArrayOop data_section_patches() { return (objArrayOop) JNIHandles::resolve(_data_section_patches_handle); }
   194   objArrayOop data_section_patches();
   195 #ifndef PRODUCT
   195 #ifndef PRODUCT
   196   objArrayOop comments() { return (objArrayOop) JNIHandles::resolve(_comments_handle); }
   196   objArrayOop comments();
   197 #endif
   197 #endif
   198 
   198 
   199   oop word_kind() { return (oop) JNIHandles::resolve(_word_kind_handle); }
   199   oop word_kind();
   200 
   200 
   201 public:
   201 public:
   202 
   202 
   203   CodeInstaller(bool immutable_pic_compilation) : _arena(mtCompiler), _immutable_pic_compilation(immutable_pic_compilation) {}
   203   CodeInstaller(bool immutable_pic_compilation) : _arena(mtCompiler), _immutable_pic_compilation(immutable_pic_compilation) {}
   204 
   204