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

Side by Side Diff: src/objects.h

Issue 1535723002: [heap] Use HashMap as scratchpad backing store (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revive the founder counter on the AllocationSite Created 4 years, 11 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 | « src/heap/spaces.cc ('k') | 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/allocation.h" 10 #include "src/allocation.h"
(...skipping 8129 matching lines...) Expand 10 before | Expand all | Expand 10 after
8140 class DoNotInlineBit: public BitField<bool, 29, 1> {}; 8140 class DoNotInlineBit: public BitField<bool, 29, 1> {};
8141 8141
8142 // Bitfields for pretenure_data 8142 // Bitfields for pretenure_data
8143 class MementoFoundCountBits: public BitField<int, 0, 26> {}; 8143 class MementoFoundCountBits: public BitField<int, 0, 26> {};
8144 class PretenureDecisionBits: public BitField<PretenureDecision, 26, 3> {}; 8144 class PretenureDecisionBits: public BitField<PretenureDecision, 26, 3> {};
8145 class DeoptDependentCodeBit: public BitField<bool, 29, 1> {}; 8145 class DeoptDependentCodeBit: public BitField<bool, 29, 1> {};
8146 STATIC_ASSERT(PretenureDecisionBits::kMax >= kLastPretenureDecisionValue); 8146 STATIC_ASSERT(PretenureDecisionBits::kMax >= kLastPretenureDecisionValue);
8147 8147
8148 // Increments the mementos found counter and returns true when the first 8148 // Increments the mementos found counter and returns true when the first
8149 // memento was found for a given allocation site. 8149 // memento was found for a given allocation site.
8150 inline bool IncrementMementoFoundCount(); 8150 inline bool IncrementMementoFoundCount(int increment = 1);
8151 8151
8152 inline void IncrementMementoCreateCount(); 8152 inline void IncrementMementoCreateCount();
8153 8153
8154 PretenureFlag GetPretenureMode(); 8154 PretenureFlag GetPretenureMode();
8155 8155
8156 void ResetPretenureDecision(); 8156 void ResetPretenureDecision();
8157 8157
8158 inline PretenureDecision pretenure_decision(); 8158 inline PretenureDecision pretenure_decision();
8159 inline void set_pretenure_decision(PretenureDecision decision); 8159 inline void set_pretenure_decision(PretenureDecision decision);
8160 8160
(...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after
10737 } 10737 }
10738 return value; 10738 return value;
10739 } 10739 }
10740 }; 10740 };
10741 10741
10742 10742
10743 } // NOLINT, false-positive due to second-order macros. 10743 } // NOLINT, false-positive due to second-order macros.
10744 } // NOLINT, false-positive due to second-order macros. 10744 } // NOLINT, false-positive due to second-order macros.
10745 10745
10746 #endif // V8_OBJECTS_H_ 10746 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/spaces.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698