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

Unified Diff: src/compiler/node-properties.h

Issue 2812233002: [turbofan] Use unreliable LOAD_IC feedback for Array.prototype.push. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node-properties.h
diff --git a/src/compiler/node-properties.h b/src/compiler/node-properties.h
index b4b5e5bc74727967bfd9f6771d0a824a3b0b9be1..aa35ea84e0f908a4c4f70d5284518757e0fb3a8e 100644
--- a/src/compiler/node-properties.h
+++ b/src/compiler/node-properties.h
@@ -129,10 +129,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.
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698