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

Unified Diff: src/api.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/api.cc
diff --git a/src/api.cc b/src/api.cc
index 6b234bc2bd3c00035e9fb5ba3cdb0e08d526992c..491da4b1fc8f569ed3fd69cbd6fe016637a830a8 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -67,6 +67,7 @@
#include "src/snapshot/snapshot.h"
#include "src/startup-data-util.h"
#include "src/tracing/trace-event.h"
+#include "src/trap-handler/trap-handler.h"
#include "src/unicode-inl.h"
#include "src/v8.h"
#include "src/v8threads.h"
@@ -6114,6 +6115,15 @@ bool v8::V8::Initialize() {
return true;
}
+bool V8::TryHandleFault(void* source_instruction, void* target_data,
+ void** return_address) {
+ return v8::internal::trap_handler::TryHandleFault(
+ source_instruction, target_data, return_address);
+}
+
+bool V8::RegisterDefaultSignalHandler() {
+ return v8::internal::trap_handler::RegisterDefaultSignalHandler();
+}
void v8::V8::SetEntropySource(EntropySource entropy_source) {
base::RandomNumberGenerator::SetEntropySource(entropy_source);
« no previous file with comments | « include/v8.h ('k') | src/compiler/wasm-compiler.cc » ('j') | src/trap-handler/signal-handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698