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

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

Issue 2108793003: [turbofan] Drop the obsolete TypeGuard operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@MathRandom
Patch Set: Created 4 years, 6 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/simplified-operator.h ('k') | src/compiler/simplified-operator-reducer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 7e05593eef7c6bc36280c6b91d979315a278aff8..a77931e0f3862ebaa32953b2e9fd644cb3e14885 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -212,11 +212,6 @@ CheckTaggedHoleMode CheckTaggedHoleModeOf(const Operator* op) {
return OpParameter<CheckTaggedHoleMode>(op);
}
-Type* TypeOf(const Operator* op) {
- DCHECK_EQ(IrOpcode::kTypeGuard, op->opcode());
- return OpParameter<Type*>(op);
-}
-
BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op) {
DCHECK(op->opcode() == IrOpcode::kSpeculativeNumberAdd ||
op->opcode() == IrOpcode::kSpeculativeNumberSubtract ||
@@ -459,23 +454,6 @@ const Operator* SimplifiedOperatorBuilder::CheckBounds() {
"CheckBounds", 2, 1, 1, 1, 1, 0);
}
-const Operator* SimplifiedOperatorBuilder::TypeGuard(Type* type) {
- class TypeGuardOperator final : public Operator1<Type*> {
- public:
- explicit TypeGuardOperator(Type* type)
- : Operator1<Type*>( // --
- IrOpcode::kTypeGuard, Operator::kPure, // opcode
- "TypeGuard", // name
- 1, 0, 1, 1, 0, 0, // counts
- type) {} // parameter
-
- void PrintParameter(std::ostream& os) const final {
- parameter()->PrintTo(os);
- }
- };
- return new (zone()) TypeGuardOperator(type);
-}
-
const Operator* SimplifiedOperatorBuilder::Allocate(PretenureFlag pretenure) {
switch (pretenure) {
case NOT_TENURED:
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/simplified-operator-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698