| 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 #include "src/handles-inl.h" | 7 #include "src/handles-inl.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 | 48 |
| 49 std::ostream& operator<<(std::ostream& os, FrameStateType type) { | 49 std::ostream& operator<<(std::ostream& os, FrameStateType type) { |
| 50 switch (type) { | 50 switch (type) { |
| 51 case FrameStateType::kJavaScriptFunction: | 51 case FrameStateType::kJavaScriptFunction: |
| 52 os << "JS_FRAME"; | 52 os << "JS_FRAME"; |
| 53 break; | 53 break; |
| 54 case FrameStateType::kArgumentsAdaptor: | 54 case FrameStateType::kArgumentsAdaptor: |
| 55 os << "ARGUMENTS_ADAPTOR"; | 55 os << "ARGUMENTS_ADAPTOR"; |
| 56 break; | 56 break; |
| 57 case FrameStateType::kConstructStub: |
| 58 os << "CONSTRUCT_STUB"; |
| 59 break; |
| 57 } | 60 } |
| 58 return os; | 61 return os; |
| 59 } | 62 } |
| 60 | 63 |
| 61 | 64 |
| 62 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) { | 65 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) { |
| 63 os << info.type() << ", " << info.bailout_id() << ", " | 66 os << info.type() << ", " << info.bailout_id() << ", " |
| 64 << info.state_combine(); | 67 << info.state_combine(); |
| 65 Handle<SharedFunctionInfo> shared_info; | 68 Handle<SharedFunctionInfo> shared_info; |
| 66 if (info.shared_info().ToHandle(&shared_info)) { | 69 if (info.shared_info().ToHandle(&shared_info)) { |
| 67 os << ", " << Brief(*shared_info); | 70 os << ", " << Brief(*shared_info); |
| 68 } | 71 } |
| 69 return os; | 72 return os; |
| 70 } | 73 } |
| 71 | 74 |
| 72 } // namespace compiler | 75 } // namespace compiler |
| 73 } // namespace internal | 76 } // namespace internal |
| 74 } // namespace v8 | 77 } // namespace v8 |
| OLD | NEW |