Revision: 16419
Author: [email protected]
Date: Thu Aug 29 11:49:46 2013 UTC
Log: ConstantPoolSizeAt() should return number of Instructions
instead, otherwise, some of the code will be treated as constant pool when
printing code in ARM disassembler.
BUG=none
TEST=none
[email protected]
Review URL: https://codereview.chromium.org/23654005
Patch from Bangfu Tao <[email protected]>.
http://code.google.com/p/v8/source/detail?r=16419
Modified:
/branches/bleeding_edge/src/arm/disasm-arm.cc
=======================================
--- /branches/bleeding_edge/src/arm/disasm-arm.cc Wed Aug 28 08:35:04 2013
UTC
+++ /branches/bleeding_edge/src/arm/disasm-arm.cc Thu Aug 29 11:49:46 2013
UTC
@@ -1655,7 +1655,7 @@
int Decoder::ConstantPoolSizeAt(byte* instr_ptr) {
if (IsConstantPoolAt(instr_ptr)) {
int instruction_bits = *(reinterpret_cast<int*>(instr_ptr));
- return DecodeConstantPoolLength(instruction_bits);
+ return DecodeConstantPoolLength(instruction_bits) /
Assembler::kInstrSize;
} else {
return -1;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.