Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4e67e0f2438a5f599945c4fc1fd3d03f72305b49..e408b290d6a65ea3b8383e1a983d78de57619d70 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13829,6 +13829,12 @@ void Code::InvalidateEmbeddedObjects() { |
void Code::Relocate(intptr_t delta) { |
+ if (trap_handler::UseTrapHandler() && is_wasm_code()) { |
+ const int index = trap_handler_index()->value(); |
+ if (index >= 0) { |
+ trap_handler::UpdateHandlerDataCodePointer(index, instruction_start()); |
+ } |
+ } |
for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { |
it.rinfo()->apply(delta); |
} |