open Udiff src/hotspot/share/runtime/stackValue.hpp (original) (raw)

< prev index next >

Print this page


@@ -1,7 +1,7 @@ /*


@@ -29,79 +29,79 @@ #include "runtime/handles.hpp"

class StackValue : public ResourceObj { private: BasicType _type;

}

StackValue(Handle value, intptr_t scalar_replaced = 0) { _type = T_OBJECT;

}

StackValue() { _type = T_CONFLICT;

}

// Only used during deopt- preserve object type. StackValue(intptr_t o, BasicType t) { assert(t == T_OBJECT, "should not be used"); _type = t;

}

Handle get_obj() const { assert(type() == T_OBJECT, "type check");

}

bool obj_is_scalar_replaced() const { assert(type() == T_OBJECT, "type check");

}

void set_obj(Handle value) { assert(type() == T_OBJECT, "type check");

}

intptr_t get_int() const { assert(type() == T_INT, "type check");

}

// For special case in deopt. intptr_t get_int(BasicType t) const { assert(t == T_OBJECT && type() == T_OBJECT, "type check");

}

void set_int(intptr_t value) { assert(type() == T_INT, "type check");

}

BasicType type() const { return _type; }

bool equal(StackValue *value) { if (_type != value->_type) return false; if (_type == T_OBJECT)

< prev index next >