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

Unified Diff: runtime/vm/object.cc

Issue 1408223009: VM: Change debug printing of Context to not print the raw-pointer (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 6098fd97e6bc16564b4d669f142a8d49cfa06000..d2f3a499143ca7a949a0cbaa43b89384da360770 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -13878,13 +13878,13 @@ const char* Context::ToCString() const {
Zone* zone = Thread::Current()->zone();
const Context& parent_ctx = Context::Handle(parent());
if (parent_ctx.IsNull()) {
- return zone->PrintToString("Context@%p num_variables:% " Pd "",
- this->raw(), num_variables());
+ return zone->PrintToString("Context num_variables: %" Pd "",
+ num_variables());
} else {
const char* parent_str = parent_ctx.ToCString();
return zone->PrintToString(
- "Context@%p num_variables:% " Pd " parent:{ %s }",
- this->raw(), num_variables(), parent_str);
+ "Context num_variables: %" Pd " parent:{ %s }",
+ num_variables(), parent_str);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698