equal
deleted
inserted
replaced
143 WhichOperand which = (WhichOperand) format(); // that is, disp32 or imm/imm32 |
143 WhichOperand which = (WhichOperand) format(); // that is, disp32 or imm/imm32 |
144 #ifdef AMD64 |
144 #ifdef AMD64 |
145 assert(which == Assembler::disp32_operand || |
145 assert(which == Assembler::disp32_operand || |
146 which == Assembler::call32_operand || |
146 which == Assembler::call32_operand || |
147 which == Assembler::imm_operand, "format unpacks ok"); |
147 which == Assembler::imm_operand, "format unpacks ok"); |
148 if (which != Assembler::imm_operand) { |
148 // The "address" in the code is a displacement can't return it as |
149 // The "address" in the code is a displacement can't return it as |
149 // and address* since it is really a jint* |
150 // and address* since it is really a jint* |
150 guarantee(which == Assembler::imm_operand, "must be immediate operand"); |
151 ShouldNotReachHere(); |
|
152 return NULL; |
|
153 } |
|
154 #else |
151 #else |
155 assert(which == Assembler::disp32_operand || which == Assembler::imm_operand, "format unpacks ok"); |
152 assert(which == Assembler::disp32_operand || which == Assembler::imm_operand, "format unpacks ok"); |
156 #endif // AMD64 |
153 #endif // AMD64 |
157 return (address*) Assembler::locate_operand(addr(), which); |
154 return (address*) Assembler::locate_operand(addr(), which); |
158 } |
155 } |