src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp
changeset 54847 59ea39bb2809
parent 52460 f1bb77833b59
child 55322 bc5baf205475
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54846:e4049522b074 54847:59ea39bb2809
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2012, 2018 SAP SE. All rights reserved.
     3  * Copyright (c) 2012, 2018 SAP SE. All rights reserved.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5  *
     5  *
     6  * This code is free software; you can redistribute it and/or modify it
     6  * This code is free software; you can redistribute it and/or modify it
     7  * under the terms of the GNU General Public License version 2 only, as
     7  * under the terms of the GNU General Public License version 2 only, as
  1906 
  1906 
  1907     for (int i = 0; i < total_in_args ; i++ ) {
  1907     for (int i = 0; i < total_in_args ; i++ ) {
  1908       out_sig_bt[argc++] = in_sig_bt[i];
  1908       out_sig_bt[argc++] = in_sig_bt[i];
  1909     }
  1909     }
  1910   } else {
  1910   } else {
  1911     Thread* THREAD = Thread::current();
       
  1912     in_elem_bt = NEW_RESOURCE_ARRAY(BasicType, total_c_args);
  1911     in_elem_bt = NEW_RESOURCE_ARRAY(BasicType, total_c_args);
  1913     SignatureStream ss(method->signature());
  1912     SignatureStream ss(method->signature());
  1914     int o = 0;
  1913     int o = 0;
  1915     for (int i = 0; i < total_in_args ; i++, o++) {
  1914     for (int i = 0; i < total_in_args ; i++, o++) {
  1916       if (in_sig_bt[i] == T_ARRAY) {
  1915       if (in_sig_bt[i] == T_ARRAY) {
  1917         // Arrays are passed as int, elem* pair
  1916         // Arrays are passed as int, elem* pair
  1918         Symbol* atype = ss.as_symbol(CHECK_NULL);
  1917         Symbol* atype = ss.as_symbol();
  1919         const char* at = atype->as_C_string();
  1918         const char* at = atype->as_C_string();
  1920         if (strlen(at) == 2) {
  1919         if (strlen(at) == 2) {
  1921           assert(at[0] == '[', "must be");
  1920           assert(at[0] == '[', "must be");
  1922           switch (at[1]) {
  1921           switch (at[1]) {
  1923             case 'B': in_elem_bt[o] = T_BYTE; break;
  1922             case 'B': in_elem_bt[o] = T_BYTE; break;