comparison src/share/vm/c1/c1_LIR.hpp @ 17945:15766b73dc1d

8031475: Missing oopmap in patching stubs Summary: Add patch test for lir_checkcast in compute_oop_map Reviewed-by: roland, twisti
author neliasso
date Wed, 21 May 2014 11:25:25 +0200
parents d13d7aba8c12
children
comparison
equal deleted inserted replaced
17944:abb06af6059b 17945:15766b73dc1d
1125 1125
1126 virtual void emit_code(LIR_Assembler* masm) = 0; 1126 virtual void emit_code(LIR_Assembler* masm) = 0;
1127 virtual void print_instr(outputStream* out) const = 0; 1127 virtual void print_instr(outputStream* out) const = 0;
1128 virtual void print_on(outputStream* st) const PRODUCT_RETURN; 1128 virtual void print_on(outputStream* st) const PRODUCT_RETURN;
1129 1129
1130 virtual bool is_patching() { return false; }
1130 virtual LIR_OpCall* as_OpCall() { return NULL; } 1131 virtual LIR_OpCall* as_OpCall() { return NULL; }
1131 virtual LIR_OpJavaCall* as_OpJavaCall() { return NULL; } 1132 virtual LIR_OpJavaCall* as_OpJavaCall() { return NULL; }
1132 virtual LIR_OpLabel* as_OpLabel() { return NULL; } 1133 virtual LIR_OpLabel* as_OpLabel() { return NULL; }
1133 virtual LIR_OpDelay* as_OpDelay() { return NULL; } 1134 virtual LIR_OpDelay* as_OpDelay() { return NULL; }
1134 virtual LIR_OpLock* as_OpLock() { return NULL; } 1135 virtual LIR_OpLock* as_OpLock() { return NULL; }
1385 LIR_MoveKind move_kind() const { 1386 LIR_MoveKind move_kind() const {
1386 assert(code() == lir_move, "must be"); 1387 assert(code() == lir_move, "must be");
1387 return (LIR_MoveKind)_flags; 1388 return (LIR_MoveKind)_flags;
1388 } 1389 }
1389 1390
1391 virtual bool is_patching() { return _patch != lir_patch_none; }
1390 virtual void emit_code(LIR_Assembler* masm); 1392 virtual void emit_code(LIR_Assembler* masm);
1391 virtual LIR_Op1* as_Op1() { return this; } 1393 virtual LIR_Op1* as_Op1() { return this; }
1392 virtual const char * name() const PRODUCT_RETURN0; 1394 virtual const char * name() const PRODUCT_RETURN0;
1393 1395
1394 void set_in_opr(LIR_Opr opr) { _opr = opr; } 1396 void set_in_opr(LIR_Opr opr) { _opr = opr; }
1617 void set_should_profile(bool b) { _should_profile = b; } 1619 void set_should_profile(bool b) { _should_profile = b; }
1618 ciMethod* profiled_method() const { return _profiled_method; } 1620 ciMethod* profiled_method() const { return _profiled_method; }
1619 int profiled_bci() const { return _profiled_bci; } 1621 int profiled_bci() const { return _profiled_bci; }
1620 bool should_profile() const { return _should_profile; } 1622 bool should_profile() const { return _should_profile; }
1621 1623
1624 virtual bool is_patching() { return _info_for_patch != NULL; }
1622 virtual void emit_code(LIR_Assembler* masm); 1625 virtual void emit_code(LIR_Assembler* masm);
1623 virtual LIR_OpTypeCheck* as_OpTypeCheck() { return this; } 1626 virtual LIR_OpTypeCheck* as_OpTypeCheck() { return this; }
1624 void print_instr(outputStream* out) const PRODUCT_RETURN; 1627 void print_instr(outputStream* out) const PRODUCT_RETURN;
1625 }; 1628 };
1626 1629