Chromium Code Reviews| Index: src/ia32/assembler-ia32.h |
| diff --git a/src/ia32/assembler-ia32.h b/src/ia32/assembler-ia32.h |
| index 48f06037525cf48c30ce1eea9206b55235630e1a..52ac36279e0c6064a5fafd886c90df4a7b651ed8 100644 |
| --- a/src/ia32/assembler-ia32.h |
| +++ b/src/ia32/assembler-ia32.h |
| @@ -512,15 +512,12 @@ class Assembler : public AssemblerBase { |
| void GetCode(CodeDesc* desc); |
| // Read/Modify the code target in the branch/call instruction at pc. |
| - inline static Address target_address_at(Address pc, |
| - ConstantPoolArray* constant_pool); |
| - inline static void set_target_address_at(Address pc, |
| - ConstantPoolArray* constant_pool, |
| - Address target, |
| - ICacheFlushMode icache_flush_mode = |
| - FLUSH_ICACHE_IF_NEEDED); |
| + inline static Address target_address_at(Address pc, Address constant_pool); |
| + inline static void set_target_address_at( |
| + Address pc, Address constant_pool, Address target, |
| + ICacheFlushMode icache_flush_mode = FLUSH_ICACHE_IF_NEEDED); |
| static inline Address target_address_at(Address pc, Code* code) { |
| - ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL; |
| + Address constant_pool = code ? code->constant_pool() : NULL; |
| return target_address_at(pc, constant_pool); |
| } |
| static inline void set_target_address_at(Address pc, |
| @@ -528,7 +525,7 @@ class Assembler : public AssemblerBase { |
| Address target, |
| ICacheFlushMode icache_flush_mode = |
| FLUSH_ICACHE_IF_NEEDED) { |
| - ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL; |
| + Address constant_pool = code ? code->constant_pool() : NULL; |
| set_target_address_at(pc, constant_pool, target); |
| } |
| @@ -1451,6 +1448,8 @@ class Assembler : public AssemblerBase { |
| // inline tables, e.g., jump-tables. |
| void db(uint8_t data); |
| void dd(uint32_t data); |
| + void dq(uint64_t data); |
| + void dp(uintptr_t data) { dd(data); } |
|
rmcilroy
2015/05/20 14:32:11
I don't think you need dq and dp for the architect
MTBrandyberry
2015/05/20 22:28:22
The common constant pool builder code references t
rmcilroy
2015/05/22 12:21:22
Right enough. In that case this is fine.
|
| void dd(Label* label); |
| // Check if there is less than kGap bytes available in the buffer. |
| @@ -1477,11 +1476,12 @@ class Assembler : public AssemblerBase { |
| byte byte_at(int pos) { return buffer_[pos]; } |
| void set_byte_at(int pos, byte value) { buffer_[pos] = value; } |
| - // Allocate a constant pool of the correct size for the generated code. |
| - Handle<ConstantPoolArray> NewConstantPool(Isolate* isolate); |
| - |
| - // Generate the constant pool for the generated code. |
| - void PopulateConstantPool(ConstantPoolArray* constant_pool); |
| + void SetConstantPoolOffset(int pos, int offset, |
| + ConstantPoolEntry::Access access, |
| + ConstantPoolEntry::Type type) { |
| + // No embedded constant pool support. |
| + UNREACHABLE(); |
| + } |
| protected: |
| void emit_sse_operand(XMMRegister reg, const Operand& adr); |
| @@ -1512,6 +1512,7 @@ class Assembler : public AssemblerBase { |
| TypeFeedbackId id = TypeFeedbackId::None()); |
| inline void emit(const Immediate& x); |
| inline void emit_w(const Immediate& x); |
| + inline void emit_q(uint64_t x); |
| // Emit the code-object-relative offset of the label's position |
| inline void emit_code_relative_offset(Label* label); |