2117N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A//------------------------------------------------------------------------------------------------------------------------ 0N/A // rdi: pointer to locals 0N/A // rsp: end of copied parameters area 0N/A// Various method entries (that c++ and asm interpreter agree upon) 0N/A//------------------------------------------------------------------------------------------------------------------------ 0N/A// Empty method, generate a very fast return. 0N/A // rcx: receiver (unused) 0N/A // rsi: previous interpreter state (C++ interpreter) must preserve 0N/A // rsi: sender sp must set sp to this value on return 0N/A // If we need a safepoint check, generate full interpreter entry. 0N/A // do nothing for empty methods (do not even increment invocation counter) 0N/A // return w/o popping parameters 0N/A // These don't need a safepoint check because they aren't virtually 0N/A // callable. We won't enter these intrinsics from compiled code. 0N/A // If in the future we added an intrinsic which was virtually callable 0N/A // we'd have to worry about how to safepoint so that this code is used. 0N/A // mathematical functions inlined by compiler 0N/A // (interpreter must provide identical implementation 0N/A // in order to avoid monotonicity bugs when switching 0N/A // from interpreter to compiler in the middle of some 0N/A // stack: [ ret adr ] <-- rsp 0N/A // native methods. Interpreter::method_kind(...) does a check for 0N/A // native methods first before checking for intrinsic methods and 0N/A // thus will never select this entry point. Make sure it is not 0N/A // called accidentally since the SharedRuntime entry points will 0N/A // not work for JDK 1.2. 0N/A // We no longer need to check for JDK 1.2 since it's EOL'ed. 0N/A // The following check existed in pre 1.6 implementation, 0N/A // if (Universe::is_jdk12x_version()) { 0N/A // __ should_not_reach_here(); 0N/A // Universe::is_jdk12x_version() always returns false since 0N/A // the JDK version is not yet determined when this method is called. 0N/A // This method is called during interpreter_init() whereas 0N/A // JDK version is only determined when universe2_init() is called. 0N/A // java methods. Interpreter::method_kind(...) will select 0N/A // this entry point for the corresponding methods in JDK 1.3. 0N/A // Store to stack to convert 80bit precision back to 64bits 0N/A // Store to stack to convert 80bit precision back to 64bits 3752N/A // Store to stack to convert 80bit precision back to 64bits 3752N/A // Store to stack to convert 80bit precision back to 64bits 0N/A // return double result in xmm0 for interpreter and compilers. 0N/A // done, result in FPU ST(0) or XMM0 0N/A// Abstract method entry 0N/A// Attempt to execute abstract method. Throw exception 0N/A // rcx: receiver (unused) 0N/A // rsi: previous interpreter state (C++ interpreter) must preserve 0N/A // abstract method entry 710N/A // pop return address, reset last_sp to NULL 0N/A // the call_VM checks for exception, so we should never return here. 0N/A // This code is sort of the equivalent of C2IAdapter::setup_stack_frame back in 0N/A // the days we had adapter frames. When we deoptimize a situation where a 0N/A // compiled caller calls a compiled caller will have registers it expects 0N/A // to survive the call to the callee. If we deoptimize the callee the only 0N/A // way we can restore these registers is to have the oldest interpreter 0N/A // frame that we create restore these values. That is what this routine 0N/A // At the moment we have modified c2 to not have any callee save registers 0N/A // so this problem does not exist and this routine is just a place holder.