Index: src/arm/assembler-arm-inl.h |
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h |
index 5e590a7d030d446e2bead4178b035eaf2b468ad8..0b5ced5159541776cda9df057816d441d9f70ca8 100644 |
--- a/src/arm/assembler-arm-inl.h |
+++ b/src/arm/assembler-arm-inl.h |
@@ -118,7 +118,7 @@ |
DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) |
|| rmode_ == EMBEDDED_OBJECT |
|| rmode_ == EXTERNAL_REFERENCE); |
- if (FLAG_enable_embedded_constant_pool || |
+ if (FLAG_enable_ool_constant_pool || |
Assembler::IsMovW(Memory::int32_at(pc_))) { |
// We return the PC for ool constant pool since this function is used by the |
// serializer and expects the address to reside within the code object. |
@@ -545,7 +545,7 @@ |
void Assembler::deserialization_set_special_target_at( |
Address constant_pool_entry, Code* code, Address target) { |
- if (FLAG_enable_embedded_constant_pool) { |
+ if (FLAG_enable_ool_constant_pool) { |
set_target_address_at(constant_pool_entry, code, target); |
} else { |
Memory::Address_at(constant_pool_entry) = target; |
@@ -562,21 +562,21 @@ |
bool Assembler::is_constant_pool_load(Address pc) { |
if (CpuFeatures::IsSupported(ARMv7)) { |
return !Assembler::IsMovW(Memory::int32_at(pc)) || |
- (FLAG_enable_embedded_constant_pool && |
+ (FLAG_enable_ool_constant_pool && |
Assembler::IsLdrPpRegOffset( |
Memory::int32_at(pc + 2 * Assembler::kInstrSize))); |
} else { |
return !Assembler::IsMovImmed(Memory::int32_at(pc)) || |
- (FLAG_enable_embedded_constant_pool && |
+ (FLAG_enable_ool_constant_pool && |
Assembler::IsLdrPpRegOffset( |
Memory::int32_at(pc + 4 * Assembler::kInstrSize))); |
} |
} |
-Address Assembler::constant_pool_entry_address(Address pc, |
- Address constant_pool) { |
- if (FLAG_enable_embedded_constant_pool) { |
+Address Assembler::constant_pool_entry_address( |
+ Address pc, ConstantPoolArray* constant_pool) { |
+ if (FLAG_enable_ool_constant_pool) { |
DCHECK(constant_pool != NULL); |
int cp_offset; |
if (!CpuFeatures::IsSupported(ARMv7) && IsMovImmed(Memory::int32_at(pc))) { |
@@ -604,7 +604,7 @@ |
DCHECK(Assembler::IsLdrPpImmediateOffset(Memory::int32_at(pc))); |
cp_offset = GetLdrRegisterImmediateOffset(Memory::int32_at(pc)); |
} |
- return constant_pool + cp_offset; |
+ return reinterpret_cast<Address>(constant_pool) + cp_offset; |
} else { |
DCHECK(Assembler::IsLdrPcImmediateOffset(Memory::int32_at(pc))); |
Instr instr = Memory::int32_at(pc); |
@@ -613,7 +613,8 @@ |
} |
-Address Assembler::target_address_at(Address pc, Address constant_pool) { |
+Address Assembler::target_address_at(Address pc, |
+ ConstantPoolArray* constant_pool) { |
if (is_constant_pool_load(pc)) { |
// This is a constant pool lookup. Return the value in the constant pool. |
return Memory::Address_at(constant_pool_entry_address(pc, constant_pool)); |
@@ -644,7 +645,8 @@ |
} |
-void Assembler::set_target_address_at(Address pc, Address constant_pool, |
+void Assembler::set_target_address_at(Address pc, |
+ ConstantPoolArray* constant_pool, |
Address target, |
ICacheFlushMode icache_flush_mode) { |
if (is_constant_pool_load(pc)) { |