< prev index next >

src/hotspot/share/runtime/signature.cpp

Print this page

        

@@ -551,13 +551,11 @@
 void SigEntry::fill_sig_bt(const GrowableArray<SigEntry>& sig_extended, BasicType* sig_bt_cc, int total_args_passed_cc, bool skip_vt) {
   int j = 0;
   for (int i = 0; i < sig_extended.length(); i++) {
     if (!skip_vt) {
       BasicType bt = sig_extended.at(i)._bt;
-      if (bt == T_VALUETYPE) {
-        bt = T_VALUETYPEPTR;
-      }
+      assert(bt != T_VALUETYPE, "value types should be passed as fields or reference");
       sig_bt_cc[j++] = bt;
     } else if (sig_extended.at(i)._bt != T_VALUETYPE &&
                (sig_extended.at(i)._bt != T_VOID ||
                 sig_extended.at(i-1)._bt == T_LONG ||
                 sig_extended.at(i-1)._bt == T_DOUBLE)) {
< prev index next >