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 | 9 |
10 // Has to be the last include (doesn't have include guards): | 10 // Has to be the last include (doesn't have include guards): |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // and whether or not the function is a toplevel function. The two | 165 // and whether or not the function is a toplevel function. The two |
166 // least significants bit indicates whether the function is an | 166 // least significants bit indicates whether the function is an |
167 // expression and the rest contains the source code position. | 167 // expression and the rest contains the source code position. |
168 inline int start_position_and_type() const; | 168 inline int start_position_and_type() const; |
169 inline void set_start_position_and_type(int value); | 169 inline void set_start_position_and_type(int value); |
170 | 170 |
171 // The function is subject to debugging if a debug info is attached. | 171 // The function is subject to debugging if a debug info is attached. |
172 inline bool HasDebugInfo() const; | 172 inline bool HasDebugInfo() const; |
173 DebugInfo* GetDebugInfo() const; | 173 DebugInfo* GetDebugInfo() const; |
174 | 174 |
| 175 // Break infos are contained in DebugInfo, this is a convenience method |
| 176 // to simplify access. |
| 177 bool HasBreakInfo() const; |
| 178 |
175 // A function has debug code if the compiled code has debug break slots. | 179 // A function has debug code if the compiled code has debug break slots. |
176 inline bool HasDebugCode() const; | 180 inline bool HasDebugCode() const; |
177 | 181 |
178 // [debug info]: Debug information. | 182 // [debug info]: Debug information. |
179 DECL_ACCESSORS(debug_info, Object) | 183 DECL_ACCESSORS(debug_info, Object) |
180 | 184 |
181 // Bit field containing various information collected for debugging. | 185 // Bit field containing various information collected for debugging. |
182 // This field is either stored on the kDebugInfo slot or inside the | 186 // This field is either stored on the kDebugInfo slot or inside the |
183 // debug info struct. | 187 // debug info struct. |
184 int debugger_hints() const; | 188 int debugger_hints() const; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 }; | 713 }; |
710 | 714 |
711 std::ostream& operator<<(std::ostream& os, const SourceCodeOf& v); | 715 std::ostream& operator<<(std::ostream& os, const SourceCodeOf& v); |
712 | 716 |
713 } // namespace internal | 717 } // namespace internal |
714 } // namespace v8 | 718 } // namespace v8 |
715 | 719 |
716 #include "src/objects/object-macros-undef.h" | 720 #include "src/objects/object-macros-undef.h" |
717 | 721 |
718 #endif // V8_OBJECTS_SHARED_FUNCTION_INFO_H_ | 722 #endif // V8_OBJECTS_SHARED_FUNCTION_INFO_H_ |
OLD | NEW |