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

Unified Diff: src/compiler/js-operator.cc

Issue 2365223003: Revert of [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: 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/js-operator.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index f87b34a0af3f543d4265ee7e0549b3e54e2c0b0f..d39f8cdac57c4a0530064297013d30ae17e79516 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -39,14 +39,6 @@
return base::hash_combine(p.slot(), p.vector().location());
}
-std::ostream& operator<<(std::ostream& os, VectorSlotPair const& p) {
- if (p.IsValid()) {
- os << p.index();
- } else {
- os << "N/A";
- }
- return os;
-}
ConvertReceiverMode ConvertReceiverModeOf(Operator const* op) {
DCHECK_EQ(IrOpcode::kJSConvertReceiver, op->opcode());
@@ -444,11 +436,6 @@
return OpParameter<CompareOperationHint>(op);
}
-VectorSlotPair const& VectorSlotPairOf(const Operator* op) {
- DCHECK_EQ(IrOpcode::kJSInstanceOf, op->opcode());
- return OpParameter<VectorSlotPair>(op);
-}
-
#define CACHED_OP_LIST(V) \
V(ToInteger, Operator::kNoProperties, 1, 1) \
V(ToLength, Operator::kNoProperties, 1, 1) \
@@ -460,6 +447,7 @@
V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \
V(HasProperty, Operator::kNoProperties, 2, 1) \
V(TypeOf, Operator::kPure, 1, 1) \
+ V(InstanceOf, Operator::kNoProperties, 2, 1) \
V(ForInNext, Operator::kNoProperties, 4, 1) \
V(ForInPrepare, Operator::kNoProperties, 1, 3) \
V(LoadMessage, Operator::kNoThrow, 0, 1) \
@@ -777,13 +765,6 @@
access); // parameter
}
-const Operator* JSOperatorBuilder::InstanceOf(VectorSlotPair const& feedback) {
- return new (zone()) Operator1<VectorSlotPair>( // --
- IrOpcode::kJSInstanceOf, Operator::kNoProperties, // opcode
- "JSInstanceOf", // name
- 2, 1, 1, 1, 1, 2, // counts
- feedback); // parameter
-}
const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) {
return new (zone()) Operator1<CreateArgumentsType>( // --
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698