Commit 9e5b0a5a authored by cbruni's avatar cbruni Committed by Commit bot

PrototypeInfo.validity_cell: adding comment

BUG=

Review URL: https://codereview.chromium.org/1370443002

Cr-Commit-Position: refs/heads/master@{#30915}
parent 3ac27431
......@@ -5990,6 +5990,10 @@ class PrototypeInfo : public Struct {
inline void set_registry_slot(int slot);
// [validity_cell]: Cell containing the validity bit for prototype chains
// going through this object, or Smi(0) if uninitialized.
// When a prototype object changes its map, then both its own validity cell
// and those of all "downstream" prototypes are invalidated; handlers for a
// given receiver embed the currently valid cell for that receiver's prototype
// during their compilation and check it on execution.
DECL_ACCESSORS(validity_cell, Object)
// [constructor_name]: User-friendly name of the original constructor.
DECL_ACCESSORS(constructor_name, Object)
......
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