diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-14 11:38:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-14 17:16:47 +0000 |
commit | 3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 (patch) | |
tree | 43cc572ba067417c7341db81f71ae7cc6e0fcc3e /chromium/v8/src/compiler/frame-states.cc | |
parent | f61ab1ac7f855cd281809255c0aedbb1895e1823 (diff) | |
download | qtwebengine-chromium-3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859.tar.gz |
BASELINE: Update chromium to 45.0.2454.40
Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/v8/src/compiler/frame-states.cc')
-rw-r--r-- | chromium/v8/src/compiler/frame-states.cc | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/chromium/v8/src/compiler/frame-states.cc b/chromium/v8/src/compiler/frame-states.cc index d0dbfbb2be9..76d6749d0f8 100644 --- a/chromium/v8/src/compiler/frame-states.cc +++ b/chromium/v8/src/compiler/frame-states.cc @@ -27,27 +27,47 @@ 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) { - return os << info.type() << ", " << info.bailout_id() << ", " - << info.state_combine(); -} -} +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; + if (info.shared_info().ToHandle(&shared_info)) { + os << ", " << Brief(*shared_info); + } + return os; } + +} // namespace compiler +} // namespace internal +} // namespace v8 |