/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "interpreter/interpreter.hpp"
#include "interpreter/interpreterRuntime.hpp"
#include "memory/allocation.inline.hpp"
#include "memory/universe.inline.hpp"
#include "oops/methodOop.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/icache.hpp"
#include "runtime/interfaceSupport.hpp"
#include "runtime/signature.hpp"
// Implementation of SignatureHandlerGenerator
}
#ifdef _LP64
#else
#endif
}
#ifdef _LP64
#else
#endif
}
#ifdef _LP64
#else
#endif
}
// the handle for a receiver will never be null
if (!do_NULL_check) {
} else {
Label L;
}
}
// generate code to handle arguments
// return result handler
}
// Implementation of SignatureHandlerLibrary
private:
enum { // We need to differenciate float from non floats in reg args
non_float = 0,
};
virtual void pass_int() {
}
virtual void pass_object() {
// pass address of from
}
#ifdef _LP64
virtual void pass_float() {
}
virtual void pass_double() {
}
virtual void pass_long() {
_to += 1;
}
#else
// pass_double() is pass_long() and pass_float() only _LP64
virtual void pass_long() {
_to += 2;
}
virtual void pass_float() {
}
#endif // _LP64
_argcount++;
}
}
public:
SlowSignatureHandler(methodHandle method, address from, intptr_t* to, intptr_t *RegArgSig) : NativeSignatureIterator(method) {
*_RegArgSignature = 0;
}
};
// handle arguments
// Warning: We use reg arg slot 00 temporarily to return the RegArgSignature
// back to the code that pops the arguments into the CPU registers
// return result handler