equal
deleted
inserted
replaced
58 // Generate the proper sequence into a temporary buffer and compare |
58 // Generate the proper sequence into a temporary buffer and compare |
59 // it with the original sequence. |
59 // it with the original sequence. |
60 masm.patchable_sethi(x, destreg); |
60 masm.patchable_sethi(x, destreg); |
61 int len = buffer - masm.pc(); |
61 int len = buffer - masm.pc(); |
62 for (int i = 0; i < len; i++) { |
62 for (int i = 0; i < len; i++) { |
63 assert(instaddr[i] == buffer[i], "instructions must match"); |
63 guarantee(instaddr[i] == buffer[i], "instructions must match"); |
64 } |
64 } |
65 } |
65 } |
66 |
66 |
67 void NativeInstruction::verify() { |
67 void NativeInstruction::verify() { |
68 // make sure code pattern is actually an instruction address |
68 // make sure code pattern is actually an instruction address |