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 7274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7285 | 7285 |
7286 // Indicates that |has_no_side_effect| has been computed and set. | 7286 // Indicates that |has_no_side_effect| has been computed and set. |
7287 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) | 7287 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) |
7288 | 7288 |
7289 // Indicates that the function should be skipped during stepping. | 7289 // Indicates that the function should be skipped during stepping. |
7290 DECL_BOOLEAN_ACCESSORS(debug_is_blackboxed) | 7290 DECL_BOOLEAN_ACCESSORS(debug_is_blackboxed) |
7291 | 7291 |
7292 // Indicates that |debug_is_blackboxed| has been computed and set. | 7292 // Indicates that |debug_is_blackboxed| has been computed and set. |
7293 DECL_BOOLEAN_ACCESSORS(computed_debug_is_blackboxed) | 7293 DECL_BOOLEAN_ACCESSORS(computed_debug_is_blackboxed) |
7294 | 7294 |
| 7295 DECL_BOOLEAN_ACCESSORS(is_promise_all_or_race); |
| 7296 |
7295 // The function's name if it is non-empty, otherwise the inferred name. | 7297 // The function's name if it is non-empty, otherwise the inferred name. |
7296 String* DebugName(); | 7298 String* DebugName(); |
7297 | 7299 |
7298 // The function cannot cause any side effects. | 7300 // The function cannot cause any side effects. |
7299 bool HasNoSideEffect(); | 7301 bool HasNoSideEffect(); |
7300 | 7302 |
7301 // Used for flags such as --hydrogen-filter. | 7303 // Used for flags such as --hydrogen-filter. |
7302 bool PassesFilter(const char* raw_filter); | 7304 bool PassesFilter(const char* raw_filter); |
7303 | 7305 |
7304 // Position of the 'function' token in the script source. | 7306 // Position of the 'function' token in the script source. |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7681 | 7683 |
7682 // Bit positions in debugger_hints. | 7684 // Bit positions in debugger_hints. |
7683 enum DebuggerHints { | 7685 enum DebuggerHints { |
7684 kIsAnonymousExpression, | 7686 kIsAnonymousExpression, |
7685 kNameShouldPrintAsAnonymous, | 7687 kNameShouldPrintAsAnonymous, |
7686 kDeserialized, | 7688 kDeserialized, |
7687 kHasNoSideEffect, | 7689 kHasNoSideEffect, |
7688 kComputedHasNoSideEffect, | 7690 kComputedHasNoSideEffect, |
7689 kDebugIsBlackboxed, | 7691 kDebugIsBlackboxed, |
7690 kComputedDebugIsBlackboxed, | 7692 kComputedDebugIsBlackboxed, |
| 7693 kIsPromiseAllOrRace, |
7691 }; | 7694 }; |
7692 | 7695 |
7693 // kFunctionKind has to be byte-aligned | 7696 // kFunctionKind has to be byte-aligned |
7694 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); | 7697 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); |
7695 | 7698 |
7696 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; | 7699 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; |
7697 | 7700 |
7698 class DeoptCountBits : public BitField<int, 0, 4> {}; | 7701 class DeoptCountBits : public BitField<int, 0, 4> {}; |
7699 class OptReenableTriesBits : public BitField<int, 4, 18> {}; | 7702 class OptReenableTriesBits : public BitField<int, 4, 18> {}; |
7700 class ICAgeBits : public BitField<int, 22, 8> {}; | 7703 class ICAgeBits : public BitField<int, 22, 8> {}; |
(...skipping 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11629 } | 11632 } |
11630 }; | 11633 }; |
11631 | 11634 |
11632 | 11635 |
11633 } // NOLINT, false-positive due to second-order macros. | 11636 } // NOLINT, false-positive due to second-order macros. |
11634 } // NOLINT, false-positive due to second-order macros. | 11637 } // NOLINT, false-positive due to second-order macros. |
11635 | 11638 |
11636 #include "src/objects/object-macros-undef.h" | 11639 #include "src/objects/object-macros-undef.h" |
11637 | 11640 |
11638 #endif // V8_OBJECTS_H_ | 11641 #endif // V8_OBJECTS_H_ |
OLD | NEW |