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

Unified Diff: src/code-stubs.h

Issue 2146293003: [builtins] implement Array.prototype.includes in TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix IsComparisonOpcode 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-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index a7be2f7d65e6062bf0c8ffb85fb5d3adccd9d69b..e93b8232eb407f5842571defb8c00365b4077950 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -140,6 +140,7 @@ namespace internal {
V(GetProperty) \
V(LoadICTrampolineTF) \
V(LoadICTF) \
+ V(SameValueZero) \
/* IC Handler stubs */ \
V(KeyedLoadSloppyArguments) \
V(KeyedStoreSloppyArguments) \
@@ -874,6 +875,14 @@ class StrictEqualStub final : public TurboFanCodeStub {
DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictEqual, TurboFanCodeStub);
};
+class SameValueZeroStub final : public TurboFanCodeStub {
+ public:
+ explicit SameValueZeroStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
+
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
+ DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(SameValueZero, TurboFanCodeStub);
+};
+
class StrictNotEqualStub final : public TurboFanCodeStub {
public:
explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
« src/builtins/builtins.cc ('K') | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698