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

Unified Diff: src/d8.cc

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Feedback from mseaborn 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
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index f36e3a1739f0ca666baf2e9d3d442462d2032516..33930011643de3584eb45a3159a58e9521b4fb40 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -34,6 +34,7 @@
#include "src/msan.h"
#include "src/objects-inl.h"
#include "src/snapshot/natives.h"
+#include "src/trap-handler/trap-handler.h"
#include "src/utils.h"
#include "src/v8.h"
@@ -2994,6 +2995,10 @@ int Shell::Main(int argc, char* argv[]) {
create_params.add_histogram_sample_callback = AddHistogramSample;
}
+ if (i::FLAG_wasm_trap_handler) {
+ v8::V8::RegisterDefaultSignalHandler();
+ }
+
Isolate* isolate = Isolate::New(create_params);
{
Isolate::Scope scope(isolate);

Powered by Google App Engine
This is Rietveld 408576698