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

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
Index: runtime/vm/class_finalizer.cc
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc
index f97d6dc1856d6ff2f14218787e0716f7c5ff8fb8..1c9d6de7a3d2514a5c0a92bcf8cd921ff03d1367 100644
--- a/runtime/vm/class_finalizer.cc
+++ b/runtime/vm/class_finalizer.cc
@@ -2075,7 +2075,7 @@ void ClassFinalizer::ApplyMixinType(const Class& mixin_app_class,
THR_Print("Applying mixin type '%s' to %s at pos %" Pd "\n",
String::Handle(mixin_type.Name()).ToCString(),
mixin_app_class.ToCString(),
- mixin_app_class.token_pos());
+ mixin_app_class.token_pos().value());
Ivan Posva 2016/02/01 17:16:52 ditto. Here and other places.
Cutch 2016/02/02 18:00:20 Done.
Cutch 2016/02/02 18:00:20 Done.
}
// Check for illegal self references.
@@ -2205,7 +2205,7 @@ void ClassFinalizer::ApplyMixinMembers(const Class& cls) {
THR_Print("Applying mixin members of %s to %s at pos %" Pd "\n",
mixin_cls.ToCString(),
cls.ToCString(),
- cls.token_pos());
+ cls.token_pos().value());
}
const GrowableObjectArray& cloned_funcs =
@@ -3131,7 +3131,7 @@ void ClassFinalizer::MarkTypeMalformed(const Error& prev_error,
RawType* ClassFinalizer::NewFinalizedMalformedType(const Error& prev_error,
const Script& script,
- intptr_t type_pos,
+ TokenDescriptor type_pos,
const char* format, ...) {
va_list args;
va_start(args, format);
@@ -3191,7 +3191,7 @@ void ClassFinalizer::ReportError(const Error& error) {
void ClassFinalizer::ReportErrors(const Error& prev_error,
const Class& cls,
- intptr_t token_pos,
+ TokenDescriptor token_pos,
const char* format, ...) {
va_list args;
va_start(args, format);
@@ -3203,7 +3203,7 @@ void ClassFinalizer::ReportErrors(const Error& prev_error,
void ClassFinalizer::ReportError(const Class& cls,
- intptr_t token_pos,
+ TokenDescriptor token_pos,
const char* format, ...) {
va_list args;
va_start(args, format);

Powered by Google App Engine
This is Rietveld 408576698