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