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

Unified Diff: src/compiler/js-operator.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/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index f80a0b1fc68b1915fc80d498fe36f92d79d909b1..a5c60b54bf273383d65ab82b4db9881f616ad44e 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -42,6 +42,7 @@ bool operator!=(VectorSlotPair const&, VectorSlotPair const&);
size_t hash_value(VectorSlotPair const&);
+std::ostream& operator<<(std::ostream&, VectorSlotPair const&);
// The ConvertReceiverMode is used as parameter by JSConvertReceiver operators.
ConvertReceiverMode ConvertReceiverModeOf(Operator const* op);
@@ -413,6 +414,8 @@ BinaryOperationHint BinaryOperationHintOf(const Operator* op);
CompareOperationHint CompareOperationHintOf(const Operator* op);
+VectorSlotPair const& VectorSlotPairOf(const Operator* op) WARN_UNUSED_RESULT;
+
// Interface for building JavaScript-level operators, e.g. directly from the
// AST. Most operators have no parameters, thus can be globally shared for all
// graphs.
@@ -500,7 +503,7 @@ class JSOperatorBuilder final : public ZoneObject {
const Operator* StoreContext(size_t depth, size_t index);
const Operator* TypeOf();
- const Operator* InstanceOf();
+ const Operator* InstanceOf(VectorSlotPair const& feedback);
const Operator* ForInNext();
const Operator* ForInPrepare();
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698