| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 6692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6703 | 6703 |
| 6704 // Indicates that this function is an asm function. | 6704 // Indicates that this function is an asm function. |
| 6705 DECL_BOOLEAN_ACCESSORS(asm_function) | 6705 DECL_BOOLEAN_ACCESSORS(asm_function) |
| 6706 | 6706 |
| 6707 // Indicates that the the shared function info is deserialized from cache. | 6707 // Indicates that the the shared function info is deserialized from cache. |
| 6708 DECL_BOOLEAN_ACCESSORS(deserialized) | 6708 DECL_BOOLEAN_ACCESSORS(deserialized) |
| 6709 | 6709 |
| 6710 // Indicates that the the shared function info has never been compiled before. | 6710 // Indicates that the the shared function info has never been compiled before. |
| 6711 DECL_BOOLEAN_ACCESSORS(never_compiled) | 6711 DECL_BOOLEAN_ACCESSORS(never_compiled) |
| 6712 | 6712 |
| 6713 // Indicates (for non-eager compilation) that a function's body can be parsed |
| 6714 // accepting [In] grammar production variants. |
| 6715 DECL_BOOLEAN_ACCESSORS(accept_IN) |
| 6716 |
| 6713 inline FunctionKind kind(); | 6717 inline FunctionKind kind(); |
| 6714 inline void set_kind(FunctionKind kind); | 6718 inline void set_kind(FunctionKind kind); |
| 6715 | 6719 |
| 6716 // Indicates whether or not the code in the shared function support | 6720 // Indicates whether or not the code in the shared function support |
| 6717 // deoptimization. | 6721 // deoptimization. |
| 6718 inline bool has_deoptimization_support(); | 6722 inline bool has_deoptimization_support(); |
| 6719 | 6723 |
| 6720 // Enable deoptimization support through recompiled code. | 6724 // Enable deoptimization support through recompiled code. |
| 6721 void EnableDeoptimizationSupport(Code* recompiled); | 6725 void EnableDeoptimizationSupport(Code* recompiled); |
| 6722 | 6726 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6976 kIsGenerator, | 6980 kIsGenerator, |
| 6977 kIsConciseMethod, | 6981 kIsConciseMethod, |
| 6978 kIsAccessorFunction, | 6982 kIsAccessorFunction, |
| 6979 kIsDefaultConstructor, | 6983 kIsDefaultConstructor, |
| 6980 kIsSubclassConstructor, | 6984 kIsSubclassConstructor, |
| 6981 kIsBaseConstructor, | 6985 kIsBaseConstructor, |
| 6982 kInClassLiteral, | 6986 kInClassLiteral, |
| 6983 kIsAsmFunction, | 6987 kIsAsmFunction, |
| 6984 kDeserialized, | 6988 kDeserialized, |
| 6985 kNeverCompiled, | 6989 kNeverCompiled, |
| 6990 kAcceptIn, |
| 6986 kCompilerHintsCount // Pseudo entry | 6991 kCompilerHintsCount // Pseudo entry |
| 6987 }; | 6992 }; |
| 6988 // Add hints for other modes when they're added. | 6993 // Add hints for other modes when they're added. |
| 6989 STATIC_ASSERT(LANGUAGE_END == 3); | 6994 STATIC_ASSERT(LANGUAGE_END == 3); |
| 6990 | 6995 |
| 6991 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 8> {}; | 6996 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 8> {}; |
| 6992 | 6997 |
| 6993 class DeoptCountBits : public BitField<int, 0, 4> {}; | 6998 class DeoptCountBits : public BitField<int, 0, 4> {}; |
| 6994 class OptReenableTriesBits : public BitField<int, 4, 18> {}; | 6999 class OptReenableTriesBits : public BitField<int, 4, 18> {}; |
| 6995 class ICAgeBits : public BitField<int, 22, 8> {}; | 7000 class ICAgeBits : public BitField<int, 22, 8> {}; |
| (...skipping 3729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10725 Handle<FixedArray> keys_; | 10730 Handle<FixedArray> keys_; |
| 10726 Handle<OrderedHashSet> set_; | 10731 Handle<OrderedHashSet> set_; |
| 10727 int length_; | 10732 int length_; |
| 10728 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10733 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10729 }; | 10734 }; |
| 10730 | 10735 |
| 10731 } // NOLINT, false-positive due to second-order macros. | 10736 } // NOLINT, false-positive due to second-order macros. |
| 10732 } // NOLINT, false-positive due to second-order macros. | 10737 } // NOLINT, false-positive due to second-order macros. |
| 10733 | 10738 |
| 10734 #endif // V8_OBJECTS_H_ | 10739 #endif // V8_OBJECTS_H_ |
| OLD | NEW |