Commit f9e28bf4 authored by Peter Marshall's avatar Peter Marshall Committed by Commit Bot

[cleanup] Rename internal fields -> embedder fields when printing.

Seems to have been missed in this cleanup: crrev.com/2741683004.
Also updates a comment referring to internal fields.

Change-Id: I44b5fd49f5fb4b67b5288a6af959e4e963544368
Reviewed-on: https://chromium-review.googlesource.com/466147
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: 's avatarDaniel Vogelheim <vogelheim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44349}
parent 0cb5ba0e
......@@ -168,7 +168,7 @@ void TypedArrayBuiltinsAssembler::DoInitialize(Node* const holder, Node* length,
// - Set IsExternal and IsNeuterable bits of BitFieldSlot.
// - Set the byte_length field to byte_length.
// - Set backing_store to null/Smi(0).
// - Set all internal fields to Smi(0).
// - Set all embedder fields to Smi(0).
StoreObjectFieldNoWriteBarrier(buffer, JSArrayBuffer::kBitFieldSlot,
SmiConstant(Smi::kZero));
int32_t bitfield_value = (1 << JSArrayBuffer::IsExternal::kShift) |
......
......@@ -454,7 +454,7 @@ static void JSObjectPrintHeader(std::ostream& os, JSObject* obj,
}
os << "]";
if (obj->GetEmbedderFieldCount() > 0) {
os << "\n - internal fields: " << obj->GetEmbedderFieldCount();
os << "\n - embedder fields: " << obj->GetEmbedderFieldCount();
}
}
......@@ -471,7 +471,7 @@ static void JSObjectPrintBody(std::ostream& os, JSObject* obj, // NOLINT
}
int embedder_fields = obj->GetEmbedderFieldCount();
if (embedder_fields > 0) {
os << " - internal fields = {";
os << " - embedder fields = {";
for (int i = 0; i < embedder_fields; i++) {
os << "\n " << obj->GetEmbedderField(i);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment