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

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

Issue 1131853002: [turbofan] Extract frame-states.h from common-operator.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/frame-states.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 3fb5f966cc671e62bcb12e183c7f1e1758d87e0e..7e88134a24ec72e273932779616a6d8ba98525d2 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -62,47 +62,6 @@ SelectParameters const& SelectParametersOf(const Operator* const op) {
}
-size_t hash_value(OutputFrameStateCombine const& sc) {
- return base::hash_combine(sc.kind_, sc.parameter_);
-}
-
-
-std::ostream& operator<<(std::ostream& os, OutputFrameStateCombine const& sc) {
- switch (sc.kind_) {
- case OutputFrameStateCombine::kPushOutput:
- if (sc.parameter_ == 0) return os << "Ignore";
- return os << "Push(" << sc.parameter_ << ")";
- case OutputFrameStateCombine::kPokeAt:
- return os << "PokeAt(" << sc.parameter_ << ")";
- }
- UNREACHABLE();
- return os;
-}
-
-
-bool operator==(FrameStateCallInfo const& lhs, FrameStateCallInfo const& rhs) {
- return lhs.type() == rhs.type() && lhs.bailout_id() == rhs.bailout_id() &&
- lhs.state_combine() == rhs.state_combine();
-}
-
-
-bool operator!=(FrameStateCallInfo const& lhs, FrameStateCallInfo const& rhs) {
- return !(lhs == rhs);
-}
-
-
-size_t hash_value(FrameStateCallInfo const& info) {
- return base::hash_combine(info.type(), info.bailout_id(),
- info.state_combine());
-}
-
-
-std::ostream& operator<<(std::ostream& os, FrameStateCallInfo const& info) {
- return os << info.type() << ", " << info.bailout_id() << ", "
- << info.state_combine();
-}
-
-
size_t ProjectionIndexOf(const Operator* const op) {
DCHECK_EQ(IrOpcode::kProjection, op->opcode());
return OpParameter<size_t>(op);
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/frame-states.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698