ARM64: fix constant pool size used by disassembler

BUG=
R=ulan@chromium.org, bmeurer@chromium.org

Review URL: https://codereview.chromium.org/225403005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20512 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3d1a17c2
...@@ -647,7 +647,7 @@ int Assembler::ConstantPoolSizeAt(Instruction* instr) { ...@@ -647,7 +647,7 @@ int Assembler::ConstantPoolSizeAt(Instruction* instr) {
void Assembler::ConstantPoolMarker(uint32_t size) { void Assembler::ConstantPoolMarker(uint32_t size) {
ASSERT(is_const_pool_blocked()); ASSERT(is_const_pool_blocked());
// + 1 is for the crash guard. // + 1 is for the crash guard.
Emit(LDR_x_lit | ImmLLiteral(2 * size + 1) | Rt(xzr)); Emit(LDR_x_lit | ImmLLiteral(size + 1) | Rt(xzr));
} }
...@@ -2590,7 +2590,6 @@ void Assembler::CheckConstPool(bool force_emit, bool require_jump) { ...@@ -2590,7 +2590,6 @@ void Assembler::CheckConstPool(bool force_emit, bool require_jump) {
{ {
// Block recursive calls to CheckConstPool and protect from veneer pools. // Block recursive calls to CheckConstPool and protect from veneer pools.
BlockPoolsScope block_pools(this); BlockPoolsScope block_pools(this);
RecordComment("[ Constant Pool");
RecordConstPool(pool_size); RecordConstPool(pool_size);
// Emit jump over constant pool if necessary. // Emit jump over constant pool if necessary.
...@@ -2610,6 +2609,7 @@ void Assembler::CheckConstPool(bool force_emit, bool require_jump) { ...@@ -2610,6 +2609,7 @@ void Assembler::CheckConstPool(bool force_emit, bool require_jump) {
// beginning of the constant pool. // beginning of the constant pool.
// TODO(all): currently each relocated constant is 64 bits, consider adding // TODO(all): currently each relocated constant is 64 bits, consider adding
// support for 32-bit entries. // support for 32-bit entries.
RecordComment("[ Constant Pool");
ConstantPoolMarker(2 * num_pending_reloc_info_); ConstantPoolMarker(2 * num_pending_reloc_info_);
ConstantPoolGuard(); ConstantPoolGuard();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment