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

Unified Diff: runtime/vm/exceptions.h

Issue 328663008: Add support to trace warnings in TraceBuffer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | « no previous file | runtime/vm/exceptions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.h
===================================================================
--- runtime/vm/exceptions.h (revision 37297)
+++ runtime/vm/exceptions.h (working copy)
@@ -35,9 +35,16 @@
// Report a Javascript compatibility warning at the call site given by
// caller_frame. Note that a JavascriptCompatibilityError is thrown
// if --warning_as_error is specified.
+ // Also calls TraceJSWarningV below.
static void JSWarning(StackFrame* caller_frame, const char* format, ...)
PRINTF_ATTRIBUTE(2, 3);
+ // Emit a Javascript compatibility warning to the current trace buffer.
+ static void TraceJSWarningF(const Script& script, intptr_t token_pos,
+ const char* format, ...) PRINTF_ATTRIBUTE(3, 4);
+ static void TraceJSWarningV(const Script& script, intptr_t token_pos,
+ const char* format, va_list args);
+
static RawStacktrace* CurrentStacktrace();
// Helpers to create and throw errors.
« no previous file with comments | « no previous file | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698