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 8969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8980 kTypeChangeChecksumBits> {}; // NOLINT | 8980 kTypeChangeChecksumBits> {}; // NOLINT |
8981 class ICsWithTypeInfoCountField: public BitField<int, 0, | 8981 class ICsWithTypeInfoCountField: public BitField<int, 0, |
8982 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT | 8982 kSmiValueSize - kTypeChangeChecksumBits> {}; // NOLINT |
8983 class InlinedTypeChangeChecksum: public BitField<int, | 8983 class InlinedTypeChangeChecksum: public BitField<int, |
8984 kSmiValueSize - kTypeChangeChecksumBits, | 8984 kSmiValueSize - kTypeChangeChecksumBits, |
8985 kTypeChangeChecksumBits> {}; // NOLINT | 8985 kTypeChangeChecksumBits> {}; // NOLINT |
8986 | 8986 |
8987 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackInfo); | 8987 DISALLOW_IMPLICIT_CONSTRUCTORS(TypeFeedbackInfo); |
8988 }; | 8988 }; |
8989 | 8989 |
8990 | |
8991 enum AllocationSiteMode { | |
8992 DONT_TRACK_ALLOCATION_SITE, | |
8993 TRACK_ALLOCATION_SITE, | |
8994 LAST_ALLOCATION_SITE_MODE = TRACK_ALLOCATION_SITE | |
8995 }; | |
8996 | |
8997 | |
8998 class AllocationSite: public Struct { | 8990 class AllocationSite: public Struct { |
8999 public: | 8991 public: |
9000 static const uint32_t kMaximumArrayBytesToPretransition = 8 * 1024; | 8992 static const uint32_t kMaximumArrayBytesToPretransition = 8 * 1024; |
9001 static const double kPretenureRatio; | 8993 static const double kPretenureRatio; |
9002 static const int kPretenureMinimumCreated = 100; | 8994 static const int kPretenureMinimumCreated = 100; |
9003 | 8995 |
9004 // Values for pretenure decision field. | 8996 // Values for pretenure decision field. |
9005 enum PretenureDecision { | 8997 enum PretenureDecision { |
9006 kUndecided = 0, | 8998 kUndecided = 0, |
9007 kDontTenure = 1, | 8999 kDontTenure = 1, |
(...skipping 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11709 } | 11701 } |
11710 }; | 11702 }; |
11711 | 11703 |
11712 | 11704 |
11713 } // NOLINT, false-positive due to second-order macros. | 11705 } // NOLINT, false-positive due to second-order macros. |
11714 } // NOLINT, false-positive due to second-order macros. | 11706 } // NOLINT, false-positive due to second-order macros. |
11715 | 11707 |
11716 #include "src/objects/object-macros-undef.h" | 11708 #include "src/objects/object-macros-undef.h" |
11717 | 11709 |
11718 #endif // V8_OBJECTS_H_ | 11710 #endif // V8_OBJECTS_H_ |
OLD | NEW |