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

Side by Side Diff: src/objects.h

Issue 99133017: Use an allocation site scratchpad to speed up allocaton site processing during gc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 8120 matching lines...) Expand 10 before | Expand all | Expand 10 after
8131 8131
8132 inline void Initialize(); 8132 inline void Initialize();
8133 8133
8134 // This method is expensive, it should only be called for reporting. 8134 // This method is expensive, it should only be called for reporting.
8135 bool IsNestedSite(); 8135 bool IsNestedSite();
8136 8136
8137 class ElementsKindBits: public BitField<ElementsKind, 0, 15> {}; 8137 class ElementsKindBits: public BitField<ElementsKind, 0, 15> {};
8138 class UnusedBits: public BitField<int, 15, 14> {}; 8138 class UnusedBits: public BitField<int, 15, 14> {};
8139 class DoNotInlineBit: public BitField<bool, 29, 1> {}; 8139 class DoNotInlineBit: public BitField<bool, 29, 1> {};
8140 8140
8141 inline void IncrementMementoFoundCount(); 8141 // Increments the mementos found counter and returns true when the first
8142 // memento was found for a given allocation site.
8143 inline bool IncrementMementoFoundCount();
8142 8144
8143 inline void IncrementMementoCreateCount(); 8145 inline void IncrementMementoCreateCount();
8144 8146
8145 PretenureFlag GetPretenureMode() { 8147 PretenureFlag GetPretenureMode() {
8146 int mode = pretenure_decision()->value(); 8148 int mode = pretenure_decision()->value();
8147 // Zombie objects "decide" to be untenured. 8149 // Zombie objects "decide" to be untenured.
8148 return (mode == kTenure) ? TENURED : NOT_TENURED; 8150 return (mode == kTenure) ? TENURED : NOT_TENURED;
8149 } 8151 }
8150 8152
8151 // The pretenuring decision is made during gc, and the zombie state allows 8153 // The pretenuring decision is made during gc, and the zombie state allows
(...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
10617 } else { 10619 } else {
10618 value &= ~(1 << bit_position); 10620 value &= ~(1 << bit_position);
10619 } 10621 }
10620 return value; 10622 return value;
10621 } 10623 }
10622 }; 10624 };
10623 10625
10624 } } // namespace v8::internal 10626 } } // namespace v8::internal
10625 10627
10626 #endif // V8_OBJECTS_H_ 10628 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698