| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef V8_OBJECTS_SHARED_FUNCTION_INFO_H_ | 5 #ifndef V8_OBJECTS_SHARED_FUNCTION_INFO_H_ |
| 6 #define V8_OBJECTS_SHARED_FUNCTION_INFO_H_ | 6 #define V8_OBJECTS_SHARED_FUNCTION_INFO_H_ |
| 7 | 7 |
| 8 #include "src/objects.h" | 8 #include "src/objects.h" |
| 9 #include "src/objects/script.h" | 9 #include "src/objects/script.h" |
| 10 | 10 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 inline void set_start_position_and_type(int value); | 170 inline void set_start_position_and_type(int value); |
| 171 | 171 |
| 172 // The function is subject to debugging if a debug info is attached. | 172 // The function is subject to debugging if a debug info is attached. |
| 173 inline bool HasDebugInfo() const; | 173 inline bool HasDebugInfo() const; |
| 174 DebugInfo* GetDebugInfo() const; | 174 DebugInfo* GetDebugInfo() const; |
| 175 | 175 |
| 176 // Break infos are contained in DebugInfo, this is a convenience method | 176 // Break infos are contained in DebugInfo, this is a convenience method |
| 177 // to simplify access. | 177 // to simplify access. |
| 178 bool HasBreakInfo() const; | 178 bool HasBreakInfo() const; |
| 179 | 179 |
| 180 // Coverage infos are contained in DebugInfo, this is a convenience method |
| 181 // to simplify access. |
| 182 bool HasCoverageInfo() const; |
| 183 |
| 180 // A function has debug code if the compiled code has debug break slots. | 184 // A function has debug code if the compiled code has debug break slots. |
| 181 inline bool HasDebugCode() const; | 185 inline bool HasDebugCode() const; |
| 182 | 186 |
| 183 // [debug info]: Debug information. | 187 // [debug info]: Debug information. |
| 184 DECL_ACCESSORS(debug_info, Object) | 188 DECL_ACCESSORS(debug_info, Object) |
| 185 | 189 |
| 186 // Bit field containing various information collected for debugging. | 190 // Bit field containing various information collected for debugging. |
| 187 // This field is either stored on the kDebugInfo slot or inside the | 191 // This field is either stored on the kDebugInfo slot or inside the |
| 188 // debug info struct. | 192 // debug info struct. |
| 189 int debugger_hints() const; | 193 int debugger_hints() const; |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 }; | 718 }; |
| 715 | 719 |
| 716 std::ostream& operator<<(std::ostream& os, const SourceCodeOf& v); | 720 std::ostream& operator<<(std::ostream& os, const SourceCodeOf& v); |
| 717 | 721 |
| 718 } // namespace internal | 722 } // namespace internal |
| 719 } // namespace v8 | 723 } // namespace v8 |
| 720 | 724 |
| 721 #include "src/objects/object-macros-undef.h" | 725 #include "src/objects/object-macros-undef.h" |
| 722 | 726 |
| 723 #endif // V8_OBJECTS_SHARED_FUNCTION_INFO_H_ | 727 #endif // V8_OBJECTS_SHARED_FUNCTION_INFO_H_ |
| OLD | NEW |