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