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

Side by Side Diff: src/objects.h

Issue 2064713002: [ic] Temporary resurrect ICStateField to recover performance regression. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | src/objects-inl.h » ('j') | 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 5262 matching lines...) Expand 10 before | Expand all | Expand 10 after
5273 static const int kFullCodeFlags = kKindSpecificFlags1Offset; 5273 static const int kFullCodeFlags = kKindSpecificFlags1Offset;
5274 class FullCodeFlagsHasDeoptimizationSupportField: 5274 class FullCodeFlagsHasDeoptimizationSupportField:
5275 public BitField<bool, 0, 1> {}; // NOLINT 5275 public BitField<bool, 0, 1> {}; // NOLINT
5276 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; 5276 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {};
5277 class FullCodeFlagsHasRelocInfoForSerialization 5277 class FullCodeFlagsHasRelocInfoForSerialization
5278 : public BitField<bool, 2, 1> {}; 5278 : public BitField<bool, 2, 1> {};
5279 // Bit 3 in this bitfield is unused. 5279 // Bit 3 in this bitfield is unused.
5280 class ProfilerTicksField : public BitField<int, 4, 28> {}; 5280 class ProfilerTicksField : public BitField<int, 4, 28> {};
5281 5281
5282 // Flags layout. BitField<type, shift, size>. 5282 // Flags layout. BitField<type, shift, size>.
5283 class CacheHolderField : public BitField<CacheHolderFlag, 0, 2> {}; 5283 class ICStateField : public BitField<InlineCacheState, 0, 3> {};
5284 class CacheHolderField
5285 : public BitField<CacheHolderFlag, ICStateField::kNext, 2> {};
5284 class KindField : public BitField<Kind, CacheHolderField::kNext, 5> {}; 5286 class KindField : public BitField<Kind, CacheHolderField::kNext, 5> {};
5285 class ExtraICStateField : public BitField<ExtraICState, KindField::kNext, 5287 class ExtraICStateField : public BitField<ExtraICState, KindField::kNext,
5286 PlatformSmiTagging::kSmiValueSize - 5288 PlatformSmiTagging::kSmiValueSize -
5287 KindField::kNext + 1> {}; 5289 KindField::kNext + 1> {};
5288 5290
5289 // KindSpecificFlags1 layout (STUB, BUILTIN and OPTIMIZED_FUNCTION) 5291 // KindSpecificFlags1 layout (STUB, BUILTIN and OPTIMIZED_FUNCTION)
5290 static const int kStackSlotsFirstBit = 0; 5292 static const int kStackSlotsFirstBit = 0;
5291 static const int kStackSlotsBitCount = 24; 5293 static const int kStackSlotsBitCount = 24;
5292 static const int kMarkedForDeoptimizationBit = 5294 static const int kMarkedForDeoptimizationBit =
5293 kStackSlotsFirstBit + kStackSlotsBitCount; 5295 kStackSlotsFirstBit + kStackSlotsBitCount;
(...skipping 5504 matching lines...) Expand 10 before | Expand all | Expand 10 after
10798 } 10800 }
10799 return value; 10801 return value;
10800 } 10802 }
10801 }; 10803 };
10802 10804
10803 10805
10804 } // NOLINT, false-positive due to second-order macros. 10806 } // NOLINT, false-positive due to second-order macros.
10805 } // NOLINT, false-positive due to second-order macros. 10807 } // NOLINT, false-positive due to second-order macros.
10806 10808
10807 #endif // V8_OBJECTS_H_ 10809 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698