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

Unified Diff: src/objects-printer.cc

Issue 2741683004: [rename] Rename internal field to embedder field. (Closed)
Patch Set: Remove API changes 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
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 5cb806eabe6e8c08199a66d3e3753ccb9b54a09a..52f0c3566419d1a39661e30ac0f2b40587a4c731 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 - embedder 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) {
- os << " - internal fields = {";
- for (int i = 0; i < internal_fields; i++) {
- os << "\n " << Brief(obj->GetInternalField(i));
+ int embedder_fields = obj->GetEmbedderFieldCount();
+ if (embedder_fields > 0) {
+ os << " - embedder fields = {";
+ for (int i = 0; i < embedder_fields; i++) {
+ os << "\n " << Brief(obj->GetEmbedderField(i));
}
os << "\n }\n";
}
@@ -1371,7 +1371,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";
}
« src/objects.h ('K') | « 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