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

Unified Diff: src/code-stubs.h

Issue 2370693002: [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Fix registers on arm/arm64. Created 4 years, 3 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-stub-assembler.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 0486c676fb4e494448aead544ca45c92ecb8abe9..576773ce8ebfd4196a0f1667d3298146dce94b1a 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -136,6 +136,7 @@ class ObjectLiteral;
V(FastNewClosure) \
V(FastNewFunctionContext) \
V(InstanceOf) \
+ V(InstanceOfWithFeedback) \
V(LessThan) \
V(LessThanOrEqual) \
V(GreaterThan) \
@@ -923,6 +924,17 @@ class InstanceOfStub final : public TurboFanCodeStub {
DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(InstanceOf, TurboFanCodeStub);
};
+class InstanceOfWithFeedbackStub final : public TurboFanCodeStub {
+ public:
+ explicit InstanceOfWithFeedbackStub(Isolate* isolate)
+ : TurboFanCodeStub(isolate) {}
+
+ private:
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(BinaryOpWithVector);
+ DEFINE_TURBOFAN_BINARY_OP_CODE_STUB_WITH_FEEDBACK(InstanceOfWithFeedback,
+ TurboFanCodeStub);
+};
+
class LessThanStub final : public TurboFanCodeStub {
public:
explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698