hotspot/src/share/vm/runtime/stackValue.cpp
author drchase
Fri, 09 May 2014 16:50:54 -0400
changeset 24424 2658d7834c6e
parent 13728 882756847a04
child 46271 979ebd346ecf
permissions -rw-r--r--
8037816: Fix for 8036122 breaks build with Xcode5/clang Summary: Repaired or selectively disabled offending formats; future-proofed with additional checking Reviewed-by: kvn, jrose, stefank
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 13728
diff changeset
     2
 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3283
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3283
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3283
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#include "code/debugInfo.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
#include "oops/oop.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "runtime/frame.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "runtime/handles.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "runtime/stackValue.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
StackValue* StackValue::create_stack_value(const frame* fr, const RegisterMap* reg_map, ScopeValue* sv) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
  if (sv->is_location()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
    // Stack or register value
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
    Location loc = ((LocationValue *)sv)->location();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
#ifdef SPARC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
    // %%%%% Callee-save floats will NOT be working on a Sparc until we
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
    // handle the case of a 2 floats in a single double register.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
    assert( !(loc.is_register() && loc.type() == Location::float_in_dbl), "Sparc does not handle callee-save floats yet" );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
#endif // SPARC
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
    // First find address of value
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
    address value_addr = loc.is_register()
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
      // Value was in a callee-save register
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
      ? reg_map->location(VMRegImpl::as_VMReg(loc.register_number()))
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
      // Else value was directly saved on the stack. The frame's original stack pointer,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
      // before any extension by its callee (due to Compiler1 linkage on SPARC), must be used.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
      : ((address)fr->unextended_sp()) + loc.stack_offset();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
    // Then package it right depending on type
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
    // Note: the transfer of the data is thru a union that contains
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
    // an intptr_t. This is because an interpreter stack slot is
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
    // really an intptr_t. The use of a union containing an intptr_t
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
    // ensures that on a 64 bit platform we have proper alignment
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    // and that we store the value where the interpreter will expect
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
    // to find it (i.e. proper endian). Similarly on a 32bit platform
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
    // using the intptr_t ensures that when a value is larger than
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
    // a stack slot (jlong/jdouble) that we capture the proper part
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
    // of the value for the stack slot in question.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
    //
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
    switch( loc.type() ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
    case Location::float_in_dbl: { // Holds a float in a double register?
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
      // The callee has no clue whether the register holds a float,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
      // double or is unused.  He always saves a double.  Here we know
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
      // a double was saved, but we only want a float back.  Narrow the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
      // saved double to the float that the JVM wants.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
      assert( loc.is_register(), "floats always saved to stack in 1 word" );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
      union { intptr_t p; jfloat jf; } value;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
      value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
      value.jf = (jfloat) *(jdouble*) value_addr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
      return new StackValue(value.p); // 64-bit high half is stack junk
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
    case Location::int_in_long: { // Holds an int in a long register?
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
      // The callee has no clue whether the register holds an int,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
      // long or is unused.  He always saves a long.  Here we know
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
      // a long was saved, but we only want an int back.  Narrow the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
      // saved long to the int that the JVM wants.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
      assert( loc.is_register(), "ints always saved to stack in 1 word" );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
      union { intptr_t p; jint ji;} value;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
      value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
      value.ji = (jint) *(jlong*) value_addr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
      return new StackValue(value.p); // 64-bit high half is stack junk
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
#ifdef _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
    case Location::dbl:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
      // Double value in an aligned adjacent pair
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
      return new StackValue(*(intptr_t*)value_addr);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
    case Location::lng:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
      // Long   value in an aligned adjacent pair
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
      return new StackValue(*(intptr_t*)value_addr);
1135
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    93
    case Location::narrowoop: {
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    94
      union { intptr_t p; narrowOop noop;} value;
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    95
      value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    96
      if (loc.is_register()) {
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    97
        // The callee has no clue whether the register holds an int,
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    98
        // long or is unused.  He always saves a long.  Here we know
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
    99
        // a long was saved, but we only want an int back.  Narrow the
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   100
        // saved long to the int that the JVM wants.
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   101
        value.noop =  (narrowOop) *(julong*) value_addr;
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   102
      } else {
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   103
        value.noop = *(narrowOop*) value_addr;
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   104
      }
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   105
      // Decode narrowoop and wrap a handle around the oop
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   106
      Handle h(oopDesc::decode_heap_oop(value.noop));
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   107
      return new StackValue(h);
9487203e5789 6706829: Compressed Oops: add debug info for narrow oops
kvn
parents: 1
diff changeset
   108
    }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
    case Location::oop: {
3275
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   111
      oop val = *(oop *)value_addr;
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   112
#ifdef _LP64
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   113
      if (Universe::is_narrow_oop_base(val)) {
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   114
         // Compiled code may produce decoded oop = narrow_oop_base
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   115
         // when a narrow oop implicit null check is used.
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   116
         // The narrow_oop_base could be NULL or be the address
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   117
         // of the page below heap. Use NULL value for both cases.
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   118
         val = (oop)NULL;
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   119
      }
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   120
#endif
bd2023eeea0a 6826736: CMS: core dump with -XX:+UseCompressedOops
kvn
parents: 3171
diff changeset
   121
      Handle h(val); // Wrap a handle around the oop
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
      return new StackValue(h);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
    case Location::addr: {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
      ShouldNotReachHere(); // both C1 and C2 now inline jsrs
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
    case Location::normal: {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
      // Just copy all other bits straight through
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
      union { intptr_t p; jint ji;} value;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
      value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
      value.ji = *(jint*)value_addr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
      return new StackValue(value.p);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
    case Location::invalid:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
      return new StackValue();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
    default:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
      ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  } else if (sv->is_constant_int()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
    // Constant int: treat same as register int.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
    union { intptr_t p; jint ji;} value;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
    value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
    value.ji = (jint)((ConstantIntValue*)sv)->value();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
    return new StackValue(value.p);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  } else if (sv->is_constant_oop()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
    // constant oop
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 7397
diff changeset
   148
    return new StackValue(sv->as_ConstantOopReadValue()->value());
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
#ifdef _LP64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  } else if (sv->is_constant_double()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
    // Constant double in a single stack slot
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
    union { intptr_t p; double d; } value;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
    value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
    value.d = ((ConstantDoubleValue *)sv)->value();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
    return new StackValue(value.p);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  } else if (sv->is_constant_long()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
    // Constant long in a single stack slot
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
    union { intptr_t p; jlong jl; } value;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
    value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
    value.jl = ((ConstantLongValue *)sv)->value();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
    return new StackValue(value.p);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
#endif
3171
aa289b22b577 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 1135
diff changeset
   163
  } else if (sv->is_object()) { // Scalar replaced object in compiled frame
aa289b22b577 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 1135
diff changeset
   164
    Handle ov = ((ObjectValue *)sv)->value();
aa289b22b577 6837472: com/sun/jdi/MonitorFrameInfo.java fails with AggressiveOpts in 6u14
kvn
parents: 1135
diff changeset
   165
    return new StackValue(ov, (ov.is_null()) ? 1 : 0);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  // Unknown ScopeValue type
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  return new StackValue((intptr_t) 0);   // dummy
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
BasicLock* StackValue::resolve_monitor_lock(const frame* fr, Location location) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
  assert(location.is_stack(), "for now we only look at the stack");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
  int word_offset = location.stack_offset() / wordSize;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  // (stack picture)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  // high: [     ]  word_offset + 1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  // low   [     ]  word_offset
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  //
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  // sp->  [     ]  0
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  // the word_offset is the distance from the stack pointer to the lowest address
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  // The frame's original stack pointer, before any extension by its callee
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  // (due to Compiler1 linkage on SPARC), must be used.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
  return (BasicLock*) (fr->unextended_sp() + word_offset);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
#ifndef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
void StackValue::print_on(outputStream* st) const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  switch(_type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
    case T_INT:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
      st->print("%d (int) %f (float) %x (hex)",  *(int *)&_i, *(float *)&_i,  *(int *)&_i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
      break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
    case T_OBJECT:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
     _o()->print_value_on(st);
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 13728
diff changeset
   199
      st->print(" <" INTPTR_FORMAT ">", p2i((address)_o()));
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
     break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
    case T_CONFLICT:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
     st->print("conflict");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
     break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
    default:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
     ShouldNotReachHere();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
#endif