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

Unified Diff: src/compiler/node.h

Issue 1114163005: [turbofan] Fix tail call optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
Index: src/compiler/node.h
diff --git a/src/compiler/node.h b/src/compiler/node.h
index 54c01aa3b8d6e1537992133d635c5f951b2a4d04..46dd041f1fcad8127b667a91c8885e0a360a9ddb 100644
--- a/src/compiler/node.h
+++ b/src/compiler/node.h
@@ -146,6 +146,9 @@ class Node final {
return first_use_ && first_use_->from == owner && !first_use_->next;
}
+ // Returns true if {owner1} and {owner2} are the only users of {this} node.
+ bool OwnedBy(Node const* owner1, Node const* owner2) const;
+
private:
struct Use final : public ZoneObject {
Node* from;

Powered by Google App Engine
This is Rietveld 408576698