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

Unified Diff: src/code-stub-assembler.h

Issue 2934893002: [builtins] Properly optimize Object.prototype.isPrototypeOf. (Closed)
Patch Set: Make debug-evaluate happy. Created 3 years, 6 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/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 09942e7741b5982f8dd8c550c41e2f5247f65c61..404cdb59ddbf6f8955d680d06faaf2b2653dd203 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1233,6 +1233,10 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
Label* if_end, Label* if_bailout);
// Instanceof helpers.
+ // Returns true if {object} has {prototype} somewhere in it's prototype
+ // chain, otherwise false is returned. Might cause arbitrary side effects
+ // due to [[GetPrototypeOf]] invocations.
+ Node* HasInPrototypeChain(Node* context, Node* object, Node* prototype);
// ES6 section 7.3.19 OrdinaryHasInstance (C, O)
Node* OrdinaryHasInstance(Node* context, Node* callable, Node* object);

Powered by Google App Engine
This is Rietveld 408576698