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

Unified Diff: include/v8.h

Issue 2526703002: [wasm] [asmjs] Route asm.js warnings to the dev console. (Closed)
Patch Set: fix Created 4 years, 1 month 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 | « no previous file | src/api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index ccac0244da949d0f762b0411c4c24e5f60f5c8a8..bf3a9dbee32ae65aeca6830666a796e6f38fef8f 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5710,6 +5710,10 @@ typedef void (*OOMErrorCallback)(const char* location, bool is_heap_oom);
typedef void (*MessageCallback)(Local<Message> message, Local<Value> error);
+// --- Warnings ---
+
+typedef void (*AsmJsWarningCallback)(Local<Message> message);
+
// --- Tracing ---
typedef void (*LogEventCallback)(const char* name, int event);
@@ -7067,6 +7071,9 @@ class V8_EXPORT Isolate {
/** Set the callback to invoke in case of OOM errors. */
void SetOOMErrorHandler(OOMErrorCallback that);
+ /** Set the callback to invoke in case of AsmJS validation errors. */
+ void SetAsmJsWarningHandler(AsmJsWarningCallback that);
dgozman 2016/11/29 19:00:53 Do we really need this to be asm-js specific? What
+
/**
* Set the callback to invoke to check if code generation from
* strings should be allowed.
« no previous file with comments | « no previous file | src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698