equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, 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. |
1904 for (int i = 0; i < total_in_args ; i++ ) { |
1904 for (int i = 0; i < total_in_args ; i++ ) { |
1905 if (in_sig_bt[i] == T_ARRAY) { |
1905 if (in_sig_bt[i] == T_ARRAY) { |
1906 // Arrays are passed as int, elem* pair |
1906 // Arrays are passed as int, elem* pair |
1907 out_sig_bt[argc++] = T_INT; |
1907 out_sig_bt[argc++] = T_INT; |
1908 out_sig_bt[argc++] = T_ADDRESS; |
1908 out_sig_bt[argc++] = T_ADDRESS; |
1909 Symbol* atype = ss.as_symbol(CHECK_NULL); |
1909 Symbol* atype = ss.as_symbol(); |
1910 const char* at = atype->as_C_string(); |
1910 const char* at = atype->as_C_string(); |
1911 if (strlen(at) == 2) { |
1911 if (strlen(at) == 2) { |
1912 assert(at[0] == '[', "must be"); |
1912 assert(at[0] == '[', "must be"); |
1913 switch (at[1]) { |
1913 switch (at[1]) { |
1914 case 'B': in_elem_bt[i] = T_BYTE; break; |
1914 case 'B': in_elem_bt[i] = T_BYTE; break; |