| Index: src/compiler/frame-states.cc
|
| diff --git a/src/compiler/frame-states.cc b/src/compiler/frame-states.cc
|
| index 80876f6b2a9233f103645a69c2976ffeb8126b08..76d6749d0f88788cf17e1fca67ffe8fb9d65461f 100644
|
| --- a/src/compiler/frame-states.cc
|
| +++ b/src/compiler/frame-states.cc
|
| @@ -27,24 +27,38 @@ std::ostream& operator<<(std::ostream& os, OutputFrameStateCombine const& sc) {
|
| }
|
|
|
|
|
| -bool operator==(FrameStateCallInfo const& lhs, FrameStateCallInfo const& rhs) {
|
| +bool operator==(FrameStateInfo const& lhs, FrameStateInfo const& rhs) {
|
| return lhs.type() == rhs.type() && lhs.bailout_id() == rhs.bailout_id() &&
|
| - lhs.state_combine() == rhs.state_combine();
|
| + lhs.state_combine() == rhs.state_combine() &&
|
| + lhs.function_info() == rhs.function_info();
|
| }
|
|
|
|
|
| -bool operator!=(FrameStateCallInfo const& lhs, FrameStateCallInfo const& rhs) {
|
| +bool operator!=(FrameStateInfo const& lhs, FrameStateInfo const& rhs) {
|
| return !(lhs == rhs);
|
| }
|
|
|
|
|
| -size_t hash_value(FrameStateCallInfo const& info) {
|
| - return base::hash_combine(info.type(), info.bailout_id(),
|
| +size_t hash_value(FrameStateInfo const& info) {
|
| + return base::hash_combine(static_cast<int>(info.type()), info.bailout_id(),
|
| info.state_combine());
|
| }
|
|
|
|
|
| -std::ostream& operator<<(std::ostream& os, FrameStateCallInfo const& info) {
|
| +std::ostream& operator<<(std::ostream& os, FrameStateType type) {
|
| + switch (type) {
|
| + case FrameStateType::kJavaScriptFunction:
|
| + os << "JS_FRAME";
|
| + break;
|
| + case FrameStateType::kArgumentsAdaptor:
|
| + os << "ARGUMENTS_ADAPTOR";
|
| + break;
|
| + }
|
| + return os;
|
| +}
|
| +
|
| +
|
| +std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) {
|
| os << info.type() << ", " << info.bailout_id() << ", "
|
| << info.state_combine();
|
| Handle<SharedFunctionInfo> shared_info;
|
|
|