comparison src/cpu/x86/vm/assembler_x86.hpp @ 3851:95134e034042

7063629: use cbcond in C2 generated code on T4 Summary: Use new short branch instruction in C2 generated code. Reviewed-by: never
author kvn
date Thu, 11 Aug 2011 12:08:11 -0700
parents de6a837d75cf
children 6729bbc1fcd6
comparison
equal deleted inserted replaced
3850:6987871cfb9b 3851:95134e034042
1063 // bind(L); // illegal: a label may be bound only once 1063 // bind(L); // illegal: a label may be bound only once
1064 // 1064 //
1065 // Note: The same Label can be used for forward and backward branches 1065 // Note: The same Label can be used for forward and backward branches
1066 // but it may be bound only once. 1066 // but it may be bound only once.
1067 1067
1068 void jcc(Condition cc, Label& L, 1068 void jcc(Condition cc, Label& L, bool maybe_short = true);
1069 relocInfo::relocType rtype = relocInfo::none);
1070 1069
1071 // Conditional jump to a 8-bit offset to L. 1070 // Conditional jump to a 8-bit offset to L.
1072 // WARNING: be very careful using this for forward jumps. If the label is 1071 // WARNING: be very careful using this for forward jumps. If the label is
1073 // not bound within an 8-bit offset of this instruction, a run-time error 1072 // not bound within an 8-bit offset of this instruction, a run-time error
1074 // will occur. 1073 // will occur.
1075 void jccb(Condition cc, Label& L); 1074 void jccb(Condition cc, Label& L);
1076 1075
1077 void jmp(Address entry); // pc <- entry 1076 void jmp(Address entry); // pc <- entry
1078 1077
1079 // Label operations & relative jumps (PPUM Appendix D) 1078 // Label operations & relative jumps (PPUM Appendix D)
1080 void jmp(Label& L, relocInfo::relocType rtype = relocInfo::none); // unconditional jump to L 1079 void jmp(Label& L, bool maybe_short = true); // unconditional jump to L
1081 1080
1082 void jmp(Register entry); // pc <- entry 1081 void jmp(Register entry); // pc <- entry
1083 1082
1084 // Unconditional 8-bit offset jump to L. 1083 // Unconditional 8-bit offset jump to L.
1085 // WARNING: be very careful using this for forward jumps. If the label is 1084 // WARNING: be very careful using this for forward jumps. If the label is