| Index: src/ia32/assembler-ia32-inl.h
|
| diff --git a/src/ia32/assembler-ia32-inl.h b/src/ia32/assembler-ia32-inl.h
|
| index cb6bad8a20f71f28c1c8c70cf8d8afee2a69e46c..b5081a53af072bd60f805b38313f5be9e92e1576 100644
|
| --- a/src/ia32/assembler-ia32-inl.h
|
| +++ b/src/ia32/assembler-ia32-inl.h
|
| @@ -81,6 +81,10 @@ Address RelocInfo::target_address() {
|
| return Assembler::target_address_at(pc_, host_);
|
| }
|
|
|
| +Address RelocInfo::wasm_memory_reference() {
|
| + DCHECK(IsWasmMemoryReference(rmode_));
|
| + return Assembler::target_address_at(pc_, host_);
|
| +}
|
|
|
| Address RelocInfo::target_address_address() {
|
| DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)
|
| @@ -115,6 +119,12 @@ void RelocInfo::set_target_address(Address target,
|
| }
|
| }
|
|
|
| +void RelocInfo::update_wasm_memory_reference(
|
| + Address reference, ICacheFlushMode icache_flush_mode) {
|
| + DCHECK(IsWasmMemoryReference(rmode_));
|
| + Assembler::set_target_address_at(isolate_, pc_, host_, reference,
|
| + icache_flush_mode);
|
| +}
|
|
|
| Object* RelocInfo::target_object() {
|
| DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
|
| @@ -321,6 +331,10 @@ Immediate::Immediate(int x) {
|
| rmode_ = RelocInfo::NONE32;
|
| }
|
|
|
| +Immediate::Immediate(Address x, RelocInfo::Mode rmode) {
|
| + x_ = reinterpret_cast<int32_t>(x);
|
| + rmode_ = rmode;
|
| +}
|
|
|
| Immediate::Immediate(const ExternalReference& ext) {
|
| x_ = reinterpret_cast<int32_t>(ext.address());
|
|
|