1.1 --- a/src/share/vm/c1/c1_LIR.hpp Fri May 23 14:46:59 2014 -0700 1.2 +++ b/src/share/vm/c1/c1_LIR.hpp Wed May 21 11:25:25 2014 +0200 1.3 @@ -1127,6 +1127,7 @@ 1.4 virtual void print_instr(outputStream* out) const = 0; 1.5 virtual void print_on(outputStream* st) const PRODUCT_RETURN; 1.6 1.7 + virtual bool is_patching() { return false; } 1.8 virtual LIR_OpCall* as_OpCall() { return NULL; } 1.9 virtual LIR_OpJavaCall* as_OpJavaCall() { return NULL; } 1.10 virtual LIR_OpLabel* as_OpLabel() { return NULL; } 1.11 @@ -1387,6 +1388,7 @@ 1.12 return (LIR_MoveKind)_flags; 1.13 } 1.14 1.15 + virtual bool is_patching() { return _patch != lir_patch_none; } 1.16 virtual void emit_code(LIR_Assembler* masm); 1.17 virtual LIR_Op1* as_Op1() { return this; } 1.18 virtual const char * name() const PRODUCT_RETURN0; 1.19 @@ -1619,6 +1621,7 @@ 1.20 int profiled_bci() const { return _profiled_bci; } 1.21 bool should_profile() const { return _should_profile; } 1.22 1.23 + virtual bool is_patching() { return _info_for_patch != NULL; } 1.24 virtual void emit_code(LIR_Assembler* masm); 1.25 virtual LIR_OpTypeCheck* as_OpTypeCheck() { return this; } 1.26 void print_instr(outputStream* out) const PRODUCT_RETURN;