Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 9a0fc7c8f44df7a08ff0fc8ac18625ea2bce4017..4f3fa827c77966a35e5a50b87b0d3f115a3ce8f2 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -322,7 +322,8 @@ void RelocInfo::apply(intptr_t delta) { |
Address RelocInfo::target_address() { |
- DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
+ DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) || |
+ IsWasmCodeEntry(rmode_)); |
return Assembler::target_address_at(pc_, host_); |
} |
@@ -353,7 +354,8 @@ int RelocInfo::target_address_size() { |
void RelocInfo::set_target_address(Address target, |
WriteBarrierMode write_barrier_mode, |
ICacheFlushMode icache_flush_mode) { |
- DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
+ DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) || |
+ IsWasmCodeEntry(rmode_)); |
Assembler::set_target_address_at(isolate_, pc_, host_, target, |
icache_flush_mode); |
if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && |