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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 7163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7174 | 7174 |
7175 // Indicates that |has_no_side_effect| has been computed and set. | 7175 // Indicates that |has_no_side_effect| has been computed and set. |
7176 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) | 7176 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) |
7177 | 7177 |
7178 // Indicates that the function should be skipped during stepping. | 7178 // Indicates that the function should be skipped during stepping. |
7179 DECL_BOOLEAN_ACCESSORS(debug_is_blackboxed) | 7179 DECL_BOOLEAN_ACCESSORS(debug_is_blackboxed) |
7180 | 7180 |
7181 // Indicates that |debug_is_blackboxed| has been computed and set. | 7181 // Indicates that |debug_is_blackboxed| has been computed and set. |
7182 DECL_BOOLEAN_ACCESSORS(computed_debug_is_blackboxed) | 7182 DECL_BOOLEAN_ACCESSORS(computed_debug_is_blackboxed) |
7183 | 7183 |
| 7184 // Indicates that the function has been reported for binary code coverage. |
| 7185 DECL_BOOLEAN_ACCESSORS(has_reported_binary_coverage) |
| 7186 |
7184 // The function's name if it is non-empty, otherwise the inferred name. | 7187 // The function's name if it is non-empty, otherwise the inferred name. |
7185 String* DebugName(); | 7188 String* DebugName(); |
7186 | 7189 |
7187 // The function cannot cause any side effects. | 7190 // The function cannot cause any side effects. |
7188 bool HasNoSideEffect(); | 7191 bool HasNoSideEffect(); |
7189 | 7192 |
7190 // Used for flags such as --hydrogen-filter. | 7193 // Used for flags such as --hydrogen-filter. |
7191 bool PassesFilter(const char* raw_filter); | 7194 bool PassesFilter(const char* raw_filter); |
7192 | 7195 |
7193 // Position of the 'function' token in the script source. | 7196 // Position of the 'function' token in the script source. |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7574 | 7577 |
7575 // Bit positions in debugger_hints. | 7578 // Bit positions in debugger_hints. |
7576 enum DebuggerHints { | 7579 enum DebuggerHints { |
7577 kIsAnonymousExpression, | 7580 kIsAnonymousExpression, |
7578 kNameShouldPrintAsAnonymous, | 7581 kNameShouldPrintAsAnonymous, |
7579 kDeserialized, | 7582 kDeserialized, |
7580 kHasNoSideEffect, | 7583 kHasNoSideEffect, |
7581 kComputedHasNoSideEffect, | 7584 kComputedHasNoSideEffect, |
7582 kDebugIsBlackboxed, | 7585 kDebugIsBlackboxed, |
7583 kComputedDebugIsBlackboxed, | 7586 kComputedDebugIsBlackboxed, |
| 7587 kHasReportedBinaryCoverage |
7584 }; | 7588 }; |
7585 | 7589 |
7586 // kFunctionKind has to be byte-aligned | 7590 // kFunctionKind has to be byte-aligned |
7587 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); | 7591 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); |
7588 | 7592 |
7589 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; | 7593 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; |
7590 | 7594 |
7591 class DeoptCountBits : public BitField<int, 0, 4> {}; | 7595 class DeoptCountBits : public BitField<int, 0, 4> {}; |
7592 class OptReenableTriesBits : public BitField<int, 4, 18> {}; | 7596 class OptReenableTriesBits : public BitField<int, 4, 18> {}; |
7593 class ICAgeBits : public BitField<int, 22, 8> {}; | 7597 class ICAgeBits : public BitField<int, 22, 8> {}; |
(...skipping 3994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11588 } | 11592 } |
11589 }; | 11593 }; |
11590 | 11594 |
11591 | 11595 |
11592 } // NOLINT, false-positive due to second-order macros. | 11596 } // NOLINT, false-positive due to second-order macros. |
11593 } // NOLINT, false-positive due to second-order macros. | 11597 } // NOLINT, false-positive due to second-order macros. |
11594 | 11598 |
11595 #include "src/objects/object-macros-undef.h" | 11599 #include "src/objects/object-macros-undef.h" |
11596 | 11600 |
11597 #endif // V8_OBJECTS_H_ | 11601 #endif // V8_OBJECTS_H_ |
OLD | NEW |