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