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

Side by Side Diff: src/heap/mark-compact.h

Issue 988363002: Reland of Remove slots that point to unboxed doubles from the StoreBuffer/SlotsBuffer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 5 years, 9 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/flag-definitions.h ('k') | src/heap/mark-compact.cc » ('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 // 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_HEAP_MARK_COMPACT_H_ 5 #ifndef V8_HEAP_MARK_COMPACT_H_
6 #define V8_HEAP_MARK_COMPACT_H_ 6 #define V8_HEAP_MARK_COMPACT_H_
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/heap/spaces.h" 9 #include "src/heap/spaces.h"
10 10
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 buffer->Add(slot); 353 buffer->Add(slot);
354 return true; 354 return true;
355 } 355 }
356 356
357 static bool IsTypedSlot(ObjectSlot slot); 357 static bool IsTypedSlot(ObjectSlot slot);
358 358
359 static bool AddTo(SlotsBufferAllocator* allocator, 359 static bool AddTo(SlotsBufferAllocator* allocator,
360 SlotsBuffer** buffer_address, SlotType type, Address addr, 360 SlotsBuffer** buffer_address, SlotType type, Address addr,
361 AdditionMode mode); 361 AdditionMode mode);
362 362
363 // Removes all occurrences of given slot from the chain of slots buffers.
364 static void RemoveSlot(SlotsBuffer* buffer, ObjectSlot slot_to_remove);
365
363 static const int kNumberOfElements = 1021; 366 static const int kNumberOfElements = 1021;
364 367
365 private: 368 private:
366 static const int kChainLengthThreshold = 15; 369 static const int kChainLengthThreshold = 15;
367 370
368 intptr_t idx_; 371 intptr_t idx_;
369 intptr_t chain_length_; 372 intptr_t chain_length_;
370 SlotsBuffer* next_; 373 SlotsBuffer* next_;
371 ObjectSlot slots_[kNumberOfElements]; 374 ObjectSlot slots_[kNumberOfElements];
372 }; 375 };
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 private: 969 private:
967 MarkCompactCollector* collector_; 970 MarkCompactCollector* collector_;
968 }; 971 };
969 972
970 973
971 const char* AllocationSpaceName(AllocationSpace space); 974 const char* AllocationSpaceName(AllocationSpace space);
972 } 975 }
973 } // namespace v8::internal 976 } // namespace v8::internal
974 977
975 #endif // V8_HEAP_MARK_COMPACT_H_ 978 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698