src/cpu/x86/vm/interpreter_x86_64.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8074457 Sdiff src/cpu/x86/vm

src/cpu/x86/vm/interpreter_x86_64.cpp

Print this page




   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 #include "precompiled.hpp"
  26 #include "asm/macroAssembler.hpp"
  27 #include "interpreter/bytecodeHistogram.hpp"
  28 #include "interpreter/interpreter.hpp"
  29 #include "interpreter/interpreterGenerator.hpp"
  30 #include "interpreter/interpreterRuntime.hpp"
  31 #include "interpreter/interp_masm.hpp"

  32 #include "interpreter/templateTable.hpp"
  33 #include "oops/arrayOop.hpp"
  34 #include "oops/methodData.hpp"
  35 #include "oops/method.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "prims/jvmtiExport.hpp"
  38 #include "prims/jvmtiThreadState.hpp"
  39 #include "prims/methodHandles.hpp"
  40 #include "runtime/arguments.hpp"
  41 #include "runtime/frame.inline.hpp"
  42 #include "runtime/sharedRuntime.hpp"
  43 #include "runtime/stubRoutines.hpp"
  44 #include "runtime/synchronizer.hpp"
  45 #include "runtime/timer.hpp"
  46 #include "runtime/vframeArray.hpp"
  47 #include "utilities/debug.hpp"
  48 #ifdef COMPILER1
  49 #include "c1/c1_Runtime1.hpp"
  50 #endif
  51 


 182 
 183   __ movptr(c_rarg2, Address(rsp, wordSize));
 184   __ movptr(c_rarg3, Address(rsp, 2 * wordSize));
 185   __ movptr(c_rarg4, Address(rsp, 3 * wordSize));
 186   __ movptr(c_rarg5, Address(rsp, 4 * wordSize));
 187 
 188   // restore rsp
 189   __ addptr(rsp, 14 * wordSize);
 190 
 191   __ ret(0);
 192 
 193   return entry;
 194 }
 195 #endif
 196 
 197 
 198 //
 199 // Various method entries
 200 //
 201 
 202 address InterpreterGenerator::generate_math_entry(AbstractInterpreter::MethodKind kind) {
 203 
 204   // rbx,: Method*
 205   // rcx: scratrch
 206   // r13: sender sp
 207 
 208   if (!InlineIntrinsics) return NULL; // Generate a vanilla entry
 209 
 210   address entry_point = __ pc();
 211 
 212   // These don't need a safepoint check because they aren't virtually
 213   // callable. We won't enter these intrinsics from compiled code.
 214   // If in the future we added an intrinsic which was virtually callable
 215   // we'd have to worry about how to safepoint so that this code is used.
 216 
 217   // mathematical functions inlined by compiler
 218   // (interpreter must provide identical implementation
 219   // in order to avoid monotonicity bugs when switching
 220   // from interpreter to compiler in the middle of some
 221   // computation)
 222   //




   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 #include "precompiled.hpp"
  26 #include "asm/macroAssembler.hpp"
  27 #include "interpreter/bytecodeHistogram.hpp"
  28 #include "interpreter/interpreter.hpp"

  29 #include "interpreter/interpreterRuntime.hpp"
  30 #include "interpreter/interp_masm.hpp"
  31 #include "interpreter/templateInterpreterGenerator.hpp"
  32 #include "interpreter/templateTable.hpp"
  33 #include "oops/arrayOop.hpp"
  34 #include "oops/methodData.hpp"
  35 #include "oops/method.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "prims/jvmtiExport.hpp"
  38 #include "prims/jvmtiThreadState.hpp"
  39 #include "prims/methodHandles.hpp"
  40 #include "runtime/arguments.hpp"
  41 #include "runtime/frame.inline.hpp"
  42 #include "runtime/sharedRuntime.hpp"
  43 #include "runtime/stubRoutines.hpp"
  44 #include "runtime/synchronizer.hpp"
  45 #include "runtime/timer.hpp"
  46 #include "runtime/vframeArray.hpp"
  47 #include "utilities/debug.hpp"
  48 #ifdef COMPILER1
  49 #include "c1/c1_Runtime1.hpp"
  50 #endif
  51 


 182 
 183   __ movptr(c_rarg2, Address(rsp, wordSize));
 184   __ movptr(c_rarg3, Address(rsp, 2 * wordSize));
 185   __ movptr(c_rarg4, Address(rsp, 3 * wordSize));
 186   __ movptr(c_rarg5, Address(rsp, 4 * wordSize));
 187 
 188   // restore rsp
 189   __ addptr(rsp, 14 * wordSize);
 190 
 191   __ ret(0);
 192 
 193   return entry;
 194 }
 195 #endif
 196 
 197 
 198 //
 199 // Various method entries
 200 //
 201 
 202 address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::MethodKind kind) {
 203 
 204   // rbx,: Method*
 205   // rcx: scratrch
 206   // r13: sender sp
 207 
 208   if (!InlineIntrinsics) return NULL; // Generate a vanilla entry
 209 
 210   address entry_point = __ pc();
 211 
 212   // These don't need a safepoint check because they aren't virtually
 213   // callable. We won't enter these intrinsics from compiled code.
 214   // If in the future we added an intrinsic which was virtually callable
 215   // we'd have to worry about how to safepoint so that this code is used.
 216 
 217   // mathematical functions inlined by compiler
 218   // (interpreter must provide identical implementation
 219   // in order to avoid monotonicity bugs when switching
 220   // from interpreter to compiler in the middle of some
 221   // computation)
 222   //


src/cpu/x86/vm/interpreter_x86_64.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File