1 /* |
1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
4175 // Native Argument Position |
4175 // Native Argument Position |
4176 fprintf(fp_cpp,"void Matcher::c_calling_convention(BasicType *sig_bt, VMRegPair *regs, uint length) {\n"); |
4176 fprintf(fp_cpp,"void Matcher::c_calling_convention(BasicType *sig_bt, VMRegPair *regs, uint length) {\n"); |
4177 fprintf(fp_cpp,"%s\n", _frame->_c_calling_convention); |
4177 fprintf(fp_cpp,"%s\n", _frame->_c_calling_convention); |
4178 fprintf(fp_cpp,"}\n\n"); |
4178 fprintf(fp_cpp,"}\n\n"); |
4179 // Java Return Value Location |
4179 // Java Return Value Location |
4180 fprintf(fp_cpp,"OptoRegPair Matcher::return_value(int ideal_reg, bool is_outgoing) {\n"); |
4180 fprintf(fp_cpp,"OptoRegPair Matcher::return_value(uint ideal_reg, bool is_outgoing) {\n"); |
4181 fprintf(fp_cpp,"%s\n", _frame->_return_value); |
4181 fprintf(fp_cpp,"%s\n", _frame->_return_value); |
4182 fprintf(fp_cpp,"}\n\n"); |
4182 fprintf(fp_cpp,"}\n\n"); |
4183 // Native Return Value Location |
4183 // Native Return Value Location |
4184 fprintf(fp_cpp,"OptoRegPair Matcher::c_return_value(int ideal_reg, bool is_outgoing) {\n"); |
4184 fprintf(fp_cpp,"OptoRegPair Matcher::c_return_value(uint ideal_reg, bool is_outgoing) {\n"); |
4185 fprintf(fp_cpp,"%s\n", _frame->_c_return_value); |
4185 fprintf(fp_cpp,"%s\n", _frame->_c_return_value); |
4186 fprintf(fp_cpp,"}\n\n"); |
4186 fprintf(fp_cpp,"}\n\n"); |
4187 |
4187 |
4188 // Inline Cache Register, mask definition, and encoding |
4188 // Inline Cache Register, mask definition, and encoding |
4189 fprintf(fp_cpp,"OptoReg::Name Matcher::inline_cache_reg() {"); |
4189 fprintf(fp_cpp,"OptoReg::Name Matcher::inline_cache_reg() {"); |