Chromium Code Reviews| Index: src/assembler.h |
| diff --git a/src/assembler.h b/src/assembler.h |
| index 89b0e5a6223d2549196e4d1e9b52e24576e61a59..d4d773ed3d919f17eb90729b63cf827577583005 100644 |
| --- a/src/assembler.h |
| +++ b/src/assembler.h |
| @@ -384,6 +384,10 @@ class RelocInfo BASE_EMBEDDED { |
| // instructions). |
| bool IsCodedSpecially(); |
| + // If true, the pointer this relocation info refers to is an entry in the |
| + // constant pool, otherwise the pointer is embedded in the instruction stream. |
| + bool IsInConstantPool(); |
| + |
| // Read/modify the code target in the branch/call instruction |
| // this relocation applies to; |
| // can only be called if IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) |
| @@ -406,6 +410,9 @@ class RelocInfo BASE_EMBEDDED { |
| INLINE(Code* code_age_stub()); |
| INLINE(void set_code_age_stub(Code* stub)); |
| + // Returns the address of the constant pool entry where the target address |
| + // is held. This should only be called if IsInConstantPool returns true. |
| + INLINE(Address constant_pool_entry_address()); |
|
Michael Starzinger
2014/03/07 14:36:59
nit: Let's add an empty newline for readability af
rmcilroy
2014/03/10 12:25:23
Done (also for target_address_address declaration
|
| // Read the address of the word containing the target_address in an |
| // instruction stream. What this means exactly is architecture-independent. |
| // The only architecture-independent user of this function is the serializer. |