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

Unified Diff: src/compiler/redundancy-elimination.h

Issue 2181743004: [turbofan] Speculative optimize number operations with no feedback. Base URL: https://chromium.googlesource.com/v8/v8.git@631318
Patch Set: Created 4 years, 5 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
Index: src/compiler/redundancy-elimination.h
diff --git a/src/compiler/redundancy-elimination.h b/src/compiler/redundancy-elimination.h
index 88f9032a84aa52e6c1662163e1cd2cfe400b342e..73753a5f50c94064070808fe5dc1ac257844a164 100644
--- a/src/compiler/redundancy-elimination.h
+++ b/src/compiler/redundancy-elimination.h
@@ -33,7 +33,8 @@ class RedundancyElimination final : public AdvancedReducer {
void Merge(EffectPathChecks const* that);
EffectPathChecks const* AddCheck(Zone* zone, Node* node) const;
- Node* LookupCheck(Node* node) const;
+ template <typename Predicate>
+ V8_INLINE Node* LookupCheck(Node* node, Predicate predicate) const;
private:
EffectPathChecks(Check* head, size_t size) : head_(head), size_(size) {}
@@ -55,6 +56,7 @@ class RedundancyElimination final : public AdvancedReducer {
};
Reduction ReduceCheckNode(Node* node);
+ Reduction ReduceSpeculativeNode(Node* node);
Reduction ReduceEffectPhi(Node* node);
Reduction ReduceStart(Node* node);
Reduction ReduceOtherNode(Node* node);

Powered by Google App Engine
This is Rietveld 408576698