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"; |
} |