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

Unified Diff: src/compiler/js-generic-lowering.cc

Issue 2146293003: [builtins] implement Array.prototype.includes in TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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/js-generic-lowering.cc
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
index ac64f460f29ad4b7f492a71554ce6333b0fb321c..f9799f570a295223faae5b4aab0ccdbf94634b10 100644
--- a/src/compiler/js-generic-lowering.cc
+++ b/src/compiler/js-generic-lowering.cc
@@ -134,6 +134,13 @@ void JSGenericLowering::LowerJSStrictNotEqual(Node* node) {
Operator::kEliminatable);
}
+void JSGenericLowering::LowerJSSameValueZero(Node* node) {
+ Callable callable = CodeFactory::SameValueZero(isolate());
+ node->AppendInput(zone(), graph()->start());
+ ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags,
+ Operator::kEliminatable);
+}
+
void JSGenericLowering::LowerJSToBoolean(Node* node) {
Callable callable = CodeFactory::ToBoolean(isolate());
node->AppendInput(zone(), graph()->start());

Powered by Google App Engine
This is Rietveld 408576698