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

Unified Diff: runtime/vm/report.h

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « runtime/vm/regexp_assembler_ir.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/report.h
diff --git a/runtime/vm/report.h b/runtime/vm/report.h
index 1a8d22aa31fa273dc5843e2c24802231a459b28e..3cf48ac3a12afe772ad7cdf35dbd42eed8ebd439 100644
--- a/runtime/vm/report.h
+++ b/runtime/vm/report.h
@@ -6,6 +6,7 @@
#define VM_REPORT_H_
#include "vm/allocation.h"
+#include "vm/token_position.h"
namespace dart {
@@ -36,17 +37,21 @@ class Report : AllStatic {
// Concatenate and report an already formatted error and a new error message.
static void LongJumpF(const Error& prev_error,
- const Script& script, intptr_t token_pos,
+ const Script& script, TokenPosition token_pos,
const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
static void LongJumpV(const Error& prev_error,
- const Script& script, intptr_t token_pos,
+ const Script& script, TokenPosition token_pos,
const char* format, va_list args);
// Report a warning/jswarning/error/bailout message.
- static void MessageF(Kind kind, const Script& script, intptr_t token_pos,
+ static void MessageF(Kind kind,
+ const Script& script,
+ TokenPosition token_pos,
bool report_after_token,
const char* format, ...) PRINTF_ATTRIBUTE(5, 6);
- static void MessageV(Kind kind, const Script& script, intptr_t token_pos,
+ static void MessageV(Kind kind,
+ const Script& script,
+ TokenPosition token_pos,
bool report_after_token,
const char* format, va_list args);
@@ -71,14 +76,14 @@ class Report : AllStatic {
// A null script means no source and a negative token_pos means no position.
static RawString* PrependSnippet(Kind kind,
const Script& script,
- intptr_t token_pos,
+ TokenPosition token_pos,
bool report_after_token,
const String& message);
private:
// Emit a Javascript compatibility warning to the current trace buffer.
static void TraceJSWarning(const Script& script,
- intptr_t token_pos,
+ TokenPosition token_pos,
const String& message);
DISALLOW_COPY_AND_ASSIGN(Report);
« no previous file with comments | « runtime/vm/regexp_assembler_ir.cc ('k') | runtime/vm/report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698