| 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 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 break; | 58 break; |
| 59 case FrameStateType::kArgumentsAdaptor: | 59 case FrameStateType::kArgumentsAdaptor: |
| 60 os << "ARGUMENTS_ADAPTOR"; | 60 os << "ARGUMENTS_ADAPTOR"; |
| 61 break; | 61 break; |
| 62 case FrameStateType::kTailCallerFunction: | 62 case FrameStateType::kTailCallerFunction: |
| 63 os << "TAIL_CALLER_FRAME"; | 63 os << "TAIL_CALLER_FRAME"; |
| 64 break; | 64 break; |
| 65 case FrameStateType::kConstructStub: | 65 case FrameStateType::kConstructStub: |
| 66 os << "CONSTRUCT_STUB"; | 66 os << "CONSTRUCT_STUB"; |
| 67 break; | 67 break; |
| 68 case FrameStateType::kBuiltinContinuation: |
| 69 os << "BUILTIN_CONTINUATION_FRAME"; |
| 70 break; |
| 68 case FrameStateType::kGetterStub: | 71 case FrameStateType::kGetterStub: |
| 69 os << "GETTER_STUB"; | 72 os << "GETTER_STUB"; |
| 70 break; | 73 break; |
| 71 case FrameStateType::kSetterStub: | 74 case FrameStateType::kSetterStub: |
| 72 os << "SETTER_STUB"; | 75 os << "SETTER_STUB"; |
| 73 break; | 76 break; |
| 74 } | 77 } |
| 75 return os; | 78 return os; |
| 76 } | 79 } |
| 77 | 80 |
| 78 | 81 |
| 79 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) { | 82 std::ostream& operator<<(std::ostream& os, FrameStateInfo const& info) { |
| 80 os << info.type() << ", " << info.bailout_id() << ", " | 83 os << info.type() << ", " << info.bailout_id() << ", " |
| 81 << info.state_combine(); | 84 << info.state_combine(); |
| 82 Handle<SharedFunctionInfo> shared_info; | 85 Handle<SharedFunctionInfo> shared_info; |
| 83 if (info.shared_info().ToHandle(&shared_info)) { | 86 if (info.shared_info().ToHandle(&shared_info)) { |
| 84 os << ", " << Brief(*shared_info); | 87 os << ", " << Brief(*shared_info); |
| 85 } | 88 } |
| 86 return os; | 89 return os; |
| 87 } | 90 } |
| 88 | 91 |
| 89 } // namespace compiler | 92 } // namespace compiler |
| 90 } // namespace internal | 93 } // namespace internal |
| 91 } // namespace v8 | 94 } // namespace v8 |
| OLD | NEW |