| 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 7356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7367 | 7367 |
| 7368 // Indicates that the the shared function info is deserialized from cache. | 7368 // Indicates that the the shared function info is deserialized from cache. |
| 7369 DECL_BOOLEAN_ACCESSORS(deserialized) | 7369 DECL_BOOLEAN_ACCESSORS(deserialized) |
| 7370 | 7370 |
| 7371 // Indicates that the function cannot cause side-effects. | 7371 // Indicates that the function cannot cause side-effects. |
| 7372 DECL_BOOLEAN_ACCESSORS(has_no_side_effect) | 7372 DECL_BOOLEAN_ACCESSORS(has_no_side_effect) |
| 7373 | 7373 |
| 7374 // Indicates that |has_no_side_effect| has been computed and set. | 7374 // Indicates that |has_no_side_effect| has been computed and set. |
| 7375 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) | 7375 DECL_BOOLEAN_ACCESSORS(computed_has_no_side_effect) |
| 7376 | 7376 |
| 7377 // Indicates that the function should be skipped during stepping. |
| 7378 DECL_BOOLEAN_ACCESSORS(debug_is_blackboxed) |
| 7379 |
| 7380 // Indicates that |debug_is_blackboxed| has been computed and set. |
| 7381 DECL_BOOLEAN_ACCESSORS(computed_debug_is_blackboxed) |
| 7382 |
| 7377 // The function's name if it is non-empty, otherwise the inferred name. | 7383 // The function's name if it is non-empty, otherwise the inferred name. |
| 7378 String* DebugName(); | 7384 String* DebugName(); |
| 7379 | 7385 |
| 7380 // The function cannot cause any side effects. | 7386 // The function cannot cause any side effects. |
| 7381 bool HasNoSideEffect(); | 7387 bool HasNoSideEffect(); |
| 7382 | 7388 |
| 7383 // Used for flags such as --hydrogen-filter. | 7389 // Used for flags such as --hydrogen-filter. |
| 7384 bool PassesFilter(const char* raw_filter); | 7390 bool PassesFilter(const char* raw_filter); |
| 7385 | 7391 |
| 7386 // Position of the 'function' token in the script source. | 7392 // Position of the 'function' token in the script source. |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7761 kCompilerHintsCount = kFunctionKind + 10, // Pseudo entry | 7767 kCompilerHintsCount = kFunctionKind + 10, // Pseudo entry |
| 7762 }; | 7768 }; |
| 7763 | 7769 |
| 7764 // Bit positions in debugger_hints. | 7770 // Bit positions in debugger_hints. |
| 7765 enum DebuggerHints { | 7771 enum DebuggerHints { |
| 7766 kIsAnonymousExpression, | 7772 kIsAnonymousExpression, |
| 7767 kNameShouldPrintAsAnonymous, | 7773 kNameShouldPrintAsAnonymous, |
| 7768 kDeserialized, | 7774 kDeserialized, |
| 7769 kHasNoSideEffect, | 7775 kHasNoSideEffect, |
| 7770 kComputedHasNoSideEffect, | 7776 kComputedHasNoSideEffect, |
| 7777 kDebugIsBlackboxed, |
| 7778 kComputedDebugIsBlackboxed, |
| 7771 }; | 7779 }; |
| 7772 | 7780 |
| 7773 // kFunctionKind has to be byte-aligned | 7781 // kFunctionKind has to be byte-aligned |
| 7774 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); | 7782 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); |
| 7775 | 7783 |
| 7776 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; | 7784 class FunctionKindBits : public BitField<FunctionKind, kFunctionKind, 10> {}; |
| 7777 | 7785 |
| 7778 class DeoptCountBits : public BitField<int, 0, 4> {}; | 7786 class DeoptCountBits : public BitField<int, 0, 4> {}; |
| 7779 class OptReenableTriesBits : public BitField<int, 4, 18> {}; | 7787 class OptReenableTriesBits : public BitField<int, 4, 18> {}; |
| 7780 class ICAgeBits : public BitField<int, 22, 8> {}; | 7788 class ICAgeBits : public BitField<int, 22, 8> {}; |
| (...skipping 3936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11717 } | 11725 } |
| 11718 }; | 11726 }; |
| 11719 | 11727 |
| 11720 | 11728 |
| 11721 } // NOLINT, false-positive due to second-order macros. | 11729 } // NOLINT, false-positive due to second-order macros. |
| 11722 } // NOLINT, false-positive due to second-order macros. | 11730 } // NOLINT, false-positive due to second-order macros. |
| 11723 | 11731 |
| 11724 #include "src/objects/object-macros-undef.h" | 11732 #include "src/objects/object-macros-undef.h" |
| 11725 | 11733 |
| 11726 #endif // V8_OBJECTS_H_ | 11734 #endif // V8_OBJECTS_H_ |
| OLD | NEW |