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

Unified Diff: src/code-stubs.h

Issue 1756793002: [compiler] Introduce proper StrictNotEqualStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 3a61ef02d223770d8d7a40dbc6571e6d8d897e86..8be4618ff19a83b5072dd38828b9552140f8bcbd 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -102,6 +102,7 @@ namespace internal {
/* TurboFanCodeStubs */ \
V(StringLength) \
V(StrictEqual) \
+ V(StrictNotEqual) \
V(ToBoolean) \
/* IC Handler stubs */ \
V(ArrayBufferViewLoadField) \
@@ -642,6 +643,16 @@ class StrictEqualStub final : public TurboFanCodeStub {
DEFINE_CODE_STUB(StrictEqual, TurboFanCodeStub);
};
+class StrictNotEqualStub final : public TurboFanCodeStub {
+ public:
+ explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
+
+ void GenerateAssembly(compiler::CodeStubAssembler* assembler) const final;
+
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
+ DEFINE_CODE_STUB(StrictNotEqual, TurboFanCodeStub);
+};
+
class ToBooleanStub final : public TurboFanCodeStub {
public:
explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698