hotspot/src/share/vm/runtime/stackValue.cpp
changeset 3171 aa289b22b577
parent 1135 9487203e5789
child 3261 c7d5aae8d3f7
child 3275 bd2023eeea0a
equal deleted inserted replaced
2880:c2974244a496 3171:aa289b22b577
   144     union { intptr_t p; jlong jl; } value;
   144     union { intptr_t p; jlong jl; } value;
   145     value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
   145     value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
   146     value.jl = ((ConstantLongValue *)sv)->value();
   146     value.jl = ((ConstantLongValue *)sv)->value();
   147     return new StackValue(value.p);
   147     return new StackValue(value.p);
   148 #endif
   148 #endif
   149   } else if (sv->is_object()) {
   149   } else if (sv->is_object()) { // Scalar replaced object in compiled frame
   150     return new StackValue(((ObjectValue *)sv)->value());
   150     Handle ov = ((ObjectValue *)sv)->value();
       
   151     return new StackValue(ov, (ov.is_null()) ? 1 : 0);
   151   }
   152   }
   152 
   153 
   153   // Unknown ScopeValue type
   154   // Unknown ScopeValue type
   154   ShouldNotReachHere();
   155   ShouldNotReachHere();
   155   return new StackValue((intptr_t) 0);   // dummy
   156   return new StackValue((intptr_t) 0);   // dummy