Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: src/objects.cc

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Handler signal handler registration failure Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/trap-handler/OWNERS » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 8c05ff8bdd3e07349b54771eed2d323b41614d74..8ca7cbe83e3d4edf7e951b85a1f23b78e97af110 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13862,6 +13862,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);
}
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/trap-handler/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698