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