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

Unified Diff: src/objects-printer.cc

Issue 2741683004: [rename] Rename internal field to embedder field. (Closed)
Patch Set: [rename] Rename internal field to embedder field. Created 3 years, 9 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 | « src/objects-inl.h ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 89f07012d34f989af6f0b604b0bfff71be284f0a..870c0a1e66bb4390350b594702320d45c1791493 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -452,8 +452,8 @@ static void JSObjectPrintHeader(std::ostream& os, JSObject* obj,
os << " (COW)";
}
os << "]";
- if (obj->GetInternalFieldCount() > 0) {
- os << "\n - internal fields: " << obj->GetInternalFieldCount();
+ if (obj->GetEmbedderFieldCount() > 0) {
+ os << "\n - internal fields: " << obj->GetEmbedderFieldCount();
}
}
@@ -468,11 +468,11 @@ static void JSObjectPrintBody(std::ostream& os, JSObject* obj, // NOLINT
if (obj->PrintElements(os)) os << "\n ";
os << "}\n";
}
- int internal_fields = obj->GetInternalFieldCount();
- if (internal_fields > 0) {
+ int embedder_fields = obj->GetEmbedderFieldCount();
+ if (embedder_fields > 0) {
os << " - internal fields = {";
- for (int i = 0; i < internal_fields; i++) {
- os << "\n " << obj->GetInternalField(i);
+ for (int i = 0; i < embedder_fields; i++) {
+ os << "\n " << obj->GetEmbedderField(i);
}
os << "\n }\n";
}
@@ -1372,7 +1372,7 @@ void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT
os << "\n - property_list: " << Brief(property_list());
os << "\n - property_accessors: " << Brief(property_accessors());
os << "\n - constructor: " << Brief(constructor());
- os << "\n - internal_field_count: " << internal_field_count();
+ os << "\n - embedder_field_count: " << embedder_field_count();
os << "\n - immutable_proto: " << (immutable_proto() ? "true" : "false");
os << "\n";
}
« no previous file with comments | « src/objects-inl.h ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698