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

Unified Diff: runtime/vm/class_finalizer.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
« no previous file with comments | « runtime/vm/class_finalizer.h ('k') | runtime/vm/class_finalizer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.cc
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc
index cdeb898c86174f659beba381a2d595e333072cf2..ebf986896e5ad1901c0a4d3a5121d1756d1b3e71 100644
--- a/runtime/vm/class_finalizer.cc
+++ b/runtime/vm/class_finalizer.cc
@@ -2077,10 +2077,10 @@ void ClassFinalizer::ApplyMixinType(const Class& mixin_app_class,
const Class& mixin_class = Class::Handle(mixin_type.type_class());
if (FLAG_trace_class_finalization) {
- THR_Print("Applying mixin type '%s' to %s at pos %" Pd "\n",
+ THR_Print("Applying mixin type '%s' to %s at pos %s\n",
String::Handle(mixin_type.Name()).ToCString(),
mixin_app_class.ToCString(),
- mixin_app_class.token_pos());
+ mixin_app_class.token_pos().ToCString());
}
// Check for illegal self references.
@@ -2207,10 +2207,10 @@ void ClassFinalizer::ApplyMixinMembers(const Class& cls) {
// A default constructor will be created for the mixin app alias class.
if (FLAG_trace_class_finalization) {
- THR_Print("Applying mixin members of %s to %s at pos %" Pd "\n",
+ THR_Print("Applying mixin members of %s to %s at pos %s\n",
mixin_cls.ToCString(),
cls.ToCString(),
- cls.token_pos());
+ cls.token_pos().ToCString());
}
const GrowableObjectArray& cloned_funcs =
@@ -3142,7 +3142,7 @@ void ClassFinalizer::MarkTypeMalformed(const Error& prev_error,
RawType* ClassFinalizer::NewFinalizedMalformedType(const Error& prev_error,
const Script& script,
- intptr_t type_pos,
+ TokenPosition type_pos,
const char* format, ...) {
va_list args;
va_start(args, format);
@@ -3202,7 +3202,7 @@ void ClassFinalizer::ReportError(const Error& error) {
void ClassFinalizer::ReportErrors(const Error& prev_error,
const Class& cls,
- intptr_t token_pos,
+ TokenPosition token_pos,
const char* format, ...) {
va_list args;
va_start(args, format);
@@ -3214,7 +3214,7 @@ void ClassFinalizer::ReportErrors(const Error& prev_error,
void ClassFinalizer::ReportError(const Class& cls,
- intptr_t token_pos,
+ TokenPosition token_pos,
const char* format, ...) {
va_list args;
va_start(args, format);
« no previous file with comments | « runtime/vm/class_finalizer.h ('k') | runtime/vm/class_finalizer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698