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

Unified Diff: runtime/vm/report_test.cc

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
Index: runtime/vm/report_test.cc
diff --git a/runtime/vm/report_test.cc b/runtime/vm/report_test.cc
index 95e469e02c288fb6ef6d44e9b508c3fa6d3702cd..7d68b1a94b55a0c463bd5fab9c1d122b2f924c2f 100644
--- a/runtime/vm/report_test.cc
+++ b/runtime/vm/report_test.cc
@@ -19,7 +19,7 @@ TEST_CASE(TraceJSWarning) {
Script::New(url, source, RawScript::kEvaluateTag));
script.Tokenize(String::Handle(String::New("")));
{
- const intptr_t token_pos = 0;
+ const TokenDescriptor token_pos = TokenDescriptor(0);
const char* message = "High Voltage";
Report::MessageF(Report::kJSWarning,
script, token_pos, Report::AtLocation, "%s", message);
@@ -44,7 +44,7 @@ TEST_CASE(TraceJSWarning) {
}
}
{
- const intptr_t token_pos = 1;
+ const TokenDescriptor token_pos = TokenDescriptor(1);
const char* message = "Low Voltage";
Report::MessageF(Report::kJSWarning,
script, token_pos, Report::AtLocation, "%s", message);
« no previous file with comments | « runtime/vm/report.cc ('k') | runtime/vm/runtime_entry.cc » ('j') | runtime/vm/token_descriptor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698