Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: src/objects.h

Issue 2136973002: Version 5.3.332.14 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.3
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/v8-version.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 5324 matching lines...) Expand 10 before | Expand all | Expand 10 after
5335 static const int kFullCodeFlags = kKindSpecificFlags1Offset; 5335 static const int kFullCodeFlags = kKindSpecificFlags1Offset;
5336 class FullCodeFlagsHasDeoptimizationSupportField: 5336 class FullCodeFlagsHasDeoptimizationSupportField:
5337 public BitField<bool, 0, 1> {}; // NOLINT 5337 public BitField<bool, 0, 1> {}; // NOLINT
5338 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; 5338 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {};
5339 class FullCodeFlagsHasRelocInfoForSerialization 5339 class FullCodeFlagsHasRelocInfoForSerialization
5340 : public BitField<bool, 2, 1> {}; 5340 : public BitField<bool, 2, 1> {};
5341 // Bit 3 in this bitfield is unused. 5341 // Bit 3 in this bitfield is unused.
5342 class ProfilerTicksField : public BitField<int, 4, 28> {}; 5342 class ProfilerTicksField : public BitField<int, 4, 28> {};
5343 5343
5344 // Flags layout. BitField<type, shift, size>. 5344 // Flags layout. BitField<type, shift, size>.
5345 class ICStateField : public BitField<InlineCacheState, 0, 3> {}; 5345 class ICStateField : public BitField<InlineCacheState, 0, 2> {};
5346 class HasUnwindingInfoField : public BitField<bool, ICStateField::kNext, 1> {
5347 };
5346 class CacheHolderField 5348 class CacheHolderField
5347 : public BitField<CacheHolderFlag, ICStateField::kNext, 2> {}; 5349 : public BitField<CacheHolderFlag, HasUnwindingInfoField::kNext, 2> {};
5348 class KindField : public BitField<Kind, CacheHolderField::kNext, 5> {}; 5350 class KindField : public BitField<Kind, CacheHolderField::kNext, 5> {};
5349 STATIC_ASSERT(NUMBER_OF_KINDS <= KindField::kMax); 5351 STATIC_ASSERT(NUMBER_OF_KINDS <= KindField::kMax);
5350 class HasUnwindingInfoField : public BitField<bool, KindField::kNext, 1> {}; 5352 class ExtraICStateField : public BitField<ExtraICState, KindField::kNext,
5351 class ExtraICStateField 5353 PlatformSmiTagging::kSmiValueSize -
5352 : public BitField<ExtraICState, HasUnwindingInfoField::kNext, 5354 KindField::kNext + 1> {};
5353 PlatformSmiTagging::kSmiValueSize -
5354 HasUnwindingInfoField::kNext + 1> {};
5355 5355
5356 // KindSpecificFlags1 layout (STUB, BUILTIN and OPTIMIZED_FUNCTION) 5356 // KindSpecificFlags1 layout (STUB, BUILTIN and OPTIMIZED_FUNCTION)
5357 static const int kStackSlotsFirstBit = 0; 5357 static const int kStackSlotsFirstBit = 0;
5358 static const int kStackSlotsBitCount = 24; 5358 static const int kStackSlotsBitCount = 24;
5359 static const int kMarkedForDeoptimizationBit = 5359 static const int kMarkedForDeoptimizationBit =
5360 kStackSlotsFirstBit + kStackSlotsBitCount; 5360 kStackSlotsFirstBit + kStackSlotsBitCount;
5361 static const int kIsTurbofannedBit = kMarkedForDeoptimizationBit + 1; 5361 static const int kIsTurbofannedBit = kMarkedForDeoptimizationBit + 1;
5362 static const int kCanHaveWeakObjects = kIsTurbofannedBit + 1; 5362 static const int kCanHaveWeakObjects = kIsTurbofannedBit + 1;
5363 5363
5364 STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32); 5364 STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32);
(...skipping 5533 matching lines...) Expand 10 before | Expand all | Expand 10 after
10898 } 10898 }
10899 return value; 10899 return value;
10900 } 10900 }
10901 }; 10901 };
10902 10902
10903 10903
10904 } // NOLINT, false-positive due to second-order macros. 10904 } // NOLINT, false-positive due to second-order macros.
10905 } // NOLINT, false-positive due to second-order macros. 10905 } // NOLINT, false-positive due to second-order macros.
10906 10906
10907 #endif // V8_OBJECTS_H_ 10907 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698