< prev index next >
src/hotspot/share/c1/c1_Instruction.hpp
Print this page
*** 2120,2134 ****
public:
// creation
TableSwitch(Value tag, BlockList* sux, int lo_key, ValueStack* state_before, bool is_safepoint)
: Switch(tag, sux, state_before, is_safepoint)
! , _lo_key(lo_key) {}
// accessors
int lo_key() const { return _lo_key; }
! int hi_key() const { return _lo_key + length() - 1; }
};
LEAF(LookupSwitch, Switch)
private:
--- 2120,2134 ----
public:
// creation
TableSwitch(Value tag, BlockList* sux, int lo_key, ValueStack* state_before, bool is_safepoint)
: Switch(tag, sux, state_before, is_safepoint)
! , _lo_key(lo_key) { assert(_lo_key <= hi_key(), "integer overflow"); }
// accessors
int lo_key() const { return _lo_key; }
! int hi_key() const { return _lo_key + (length() - 1); }
};
LEAF(LookupSwitch, Switch)
private:
< prev index next >