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

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

Issue 2851723002: [turbofan] Rip out the unused OsrGuard node. (Closed)
Patch Set: Created 3 years, 8 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/common-operator.h ('k') | src/compiler/js-frame-specialization.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index 0b98d575b16ff3502cce7efdffdffd61318f5959..f87c0755b86b3ca94e38ad7d878c01bb8e5624e4 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -307,26 +307,6 @@ int OsrValueIndexOf(Operator const* op) {
return OpParameter<int>(op);
}
-size_t hash_value(OsrGuardType type) { return static_cast<size_t>(type); }
-
-std::ostream& operator<<(std::ostream& os, OsrGuardType type) {
- switch (type) {
- case OsrGuardType::kUninitialized:
- return os << "Uninitialized";
- case OsrGuardType::kSignedSmall:
- return os << "SignedSmall";
- case OsrGuardType::kAny:
- return os << "Any";
- }
- UNREACHABLE();
- return os;
-}
-
-OsrGuardType OsrGuardTypeOf(Operator const* op) {
- DCHECK_EQ(IrOpcode::kOsrGuard, op->opcode());
- return OpParameter<OsrGuardType>(op);
-}
-
SparseInputMask SparseInputMaskOf(Operator const* op) {
DCHECK(op->opcode() == IrOpcode::kStateValues ||
op->opcode() == IrOpcode::kTypedStateValues);
@@ -1010,14 +990,6 @@ const Operator* CommonOperatorBuilder::OsrValue(int index) {
index); // parameter
}
-const Operator* CommonOperatorBuilder::OsrGuard(OsrGuardType type) {
- return new (zone()) Operator1<OsrGuardType>( // --
- IrOpcode::kOsrGuard, Operator::kNoThrow, // opcode
- "OsrGuard", // name
- 1, 1, 1, 1, 1, 0, // counts
- type); // parameter
-}
-
const Operator* CommonOperatorBuilder::Int32Constant(int32_t value) {
return new (zone()) Operator1<int32_t>( // --
IrOpcode::kInt32Constant, Operator::kPure, // opcode
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/js-frame-specialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698