diff options
Diffstat (limited to 'chromium/v8/src/compiler/node-properties.h')
-rw-r--r-- | chromium/v8/src/compiler/node-properties.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chromium/v8/src/compiler/node-properties.h b/chromium/v8/src/compiler/node-properties.h index c82d78a6158..5ed85402d1f 100644 --- a/chromium/v8/src/compiler/node-properties.h +++ b/chromium/v8/src/compiler/node-properties.h @@ -128,10 +128,15 @@ class V8_EXPORT_PRIVATE NodeProperties final { static bool IsSame(Node* a, Node* b); // Walks up the {effect} chain to find a witness that provides map - // information about the {receiver}. Doesn't look through potentially + // information about the {receiver}. Can look through potentially // side effecting nodes. - static bool InferReceiverMaps(Node* receiver, Node* effect, - ZoneHandleSet<Map>* maps_return); + enum InferReceiverMapsResult { + kNoReceiverMaps, // No receiver maps inferred. + kReliableReceiverMaps, // Receiver maps can be trusted. + kUnreliableReceiverMaps // Receiver maps might have changed (side-effect). + }; + static InferReceiverMapsResult InferReceiverMaps( + Node* receiver, Node* effect, ZoneHandleSet<Map>* maps_return); // --------------------------------------------------------------------------- // Context. |