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

Unified Diff: src/code-factory.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/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 3480fe2b0d5e2367b2d5b44def9f4435781f8ca9..5de789df7beb5f8d68aa82466519e9b24dd6bc9b 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -362,6 +362,12 @@ Callable CodeFactory::StrictNotEqual(Isolate* isolate) {
}
// static
+Callable CodeFactory::SameValueZero(Isolate* isolate) {
+ SameValueZeroStub stub(isolate);
+ return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
+}
+
+// static
Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
PretenureFlag pretenure_flag) {
StringAddStub stub(isolate, flags, pretenure_flag);

Powered by Google App Engine
This is Rietveld 408576698