| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/base/functional.h" | 5 #include "src/base/functional.h" |
| 6 #include "src/compiler/frame-states.h" | 6 #include "src/compiler/frame-states.h" |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace compiler { | 10 namespace compiler { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 | 40 |
| 41 size_t hash_value(FrameStateCallInfo const& info) { | 41 size_t hash_value(FrameStateCallInfo const& info) { |
| 42 return base::hash_combine(info.type(), info.bailout_id(), | 42 return base::hash_combine(info.type(), info.bailout_id(), |
| 43 info.state_combine()); | 43 info.state_combine()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 std::ostream& operator<<(std::ostream& os, FrameStateCallInfo const& info) { | 47 std::ostream& operator<<(std::ostream& os, FrameStateCallInfo const& info) { |
| 48 return os << info.type() << ", " << info.bailout_id() << ", " | 48 os << info.type() << ", " << info.bailout_id() << ", " |
| 49 << info.state_combine(); | 49 << info.state_combine(); |
| 50 Handle<SharedFunctionInfo> shared_info; |
| 51 if (info.shared_info().ToHandle(&shared_info)) { |
| 52 os << ", " << Brief(*shared_info); |
| 53 } |
| 54 return os; |
| 50 } | 55 } |
| 51 | 56 |
| 52 } // namespace compiler | 57 } // namespace compiler |
| 53 } // namespace internal | 58 } // namespace internal |
| 54 } // namespace v8 | 59 } // namespace v8 |
| OLD | NEW |