annotate src/cpu/x86/vm/interpreterRT_x86.hpp @ 844:bd02caa94611

6862919: Update copyright year Summary: Update copyright for files that have been modified in 2009, up to 07/09 Reviewed-by: tbell, ohair
author xdono
date Tue, 28 Jul 2009 12:12:40 -0700
parents
children c18cbe5936b8
rev   line source
duke@0 1 /*
duke@0 2 * Copyright 1998-2005 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 *
duke@0 5 * This code is free software; you can redistribute it and/or modify it
duke@0 6 * under the terms of the GNU General Public License version 2 only, as
duke@0 7 * published by the Free Software Foundation.
duke@0 8 *
duke@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 * accompanied this code).
duke@0 14 *
duke@0 15 * You should have received a copy of the GNU General Public License version
duke@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 *
duke@0 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 20 * CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 21 * have any questions.
duke@0 22 *
duke@0 23 */
duke@0 24
duke@0 25 // native method calls
duke@0 26
duke@0 27 class SignatureHandlerGenerator: public NativeSignatureIterator {
duke@0 28 private:
duke@0 29 MacroAssembler* _masm;
duke@0 30 #ifdef AMD64
duke@0 31 #ifdef _WIN64
duke@0 32 unsigned int _num_args;
duke@0 33 #else
duke@0 34 unsigned int _num_fp_args;
duke@0 35 unsigned int _num_int_args;
duke@0 36 #endif // _WIN64
duke@0 37 int _stack_offset;
duke@0 38 #else
duke@0 39 void move(int from_offset, int to_offset);
duke@0 40 void box(int from_offset, int to_offset);
duke@0 41 #endif // AMD64
duke@0 42
duke@0 43 void pass_int();
duke@0 44 void pass_long();
duke@0 45 void pass_float();
duke@0 46 #ifdef AMD64
duke@0 47 void pass_double();
duke@0 48 #endif // AMD64
duke@0 49 void pass_object();
duke@0 50
duke@0 51 public:
duke@0 52 // Creation
duke@0 53 SignatureHandlerGenerator(methodHandle method, CodeBuffer* buffer) : NativeSignatureIterator(method) {
duke@0 54 _masm = new MacroAssembler(buffer);
duke@0 55 #ifdef AMD64
duke@0 56 #ifdef _WIN64
duke@0 57 _num_args = (method->is_static() ? 1 : 0);
duke@0 58 _stack_offset = (Argument::n_int_register_parameters_c+1)* wordSize; // don't overwrite return address
duke@0 59 #else
duke@0 60 _num_int_args = (method->is_static() ? 1 : 0);
duke@0 61 _num_fp_args = 0;
duke@0 62 _stack_offset = wordSize; // don't overwrite return address
duke@0 63 #endif // _WIN64
duke@0 64 #endif // AMD64
duke@0 65 }
duke@0 66
duke@0 67 // Code generation
duke@0 68 void generate(uint64_t fingerprint);
duke@0 69
duke@0 70 // Code generation support
duke@0 71 static Register from();
duke@0 72 static Register to();
duke@0 73 static Register temp();
duke@0 74 };