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

Side by Side Diff: src/heap/heap.h

Issue 1675163003: Filter out invalid slots in store buffer eagerly during object transition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable WriteBarrierObjectShiftFieldsRight test and add comments Created 4 years, 10 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/heap/heap.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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 // Write barrier support for address[offset] = o. 1069 // Write barrier support for address[offset] = o.
1070 INLINE(void RecordWrite(Address address, int offset)); 1070 INLINE(void RecordWrite(Address address, int offset));
1071 1071
1072 // Write barrier support for address[start : start + len[ = o. 1072 // Write barrier support for address[start : start + len[ = o.
1073 INLINE(void RecordWrites(Address address, int start, int len)); 1073 INLINE(void RecordWrites(Address address, int start, int len));
1074 1074
1075 Address* store_buffer_top_address() { 1075 Address* store_buffer_top_address() {
1076 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); 1076 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
1077 } 1077 }
1078 1078
1079 void ClearRecordedSlot(HeapObject* object, Object** slot);
1080
1079 // =========================================================================== 1081 // ===========================================================================
1080 // Incremental marking API. ================================================== 1082 // Incremental marking API. ==================================================
1081 // =========================================================================== 1083 // ===========================================================================
1082 1084
1083 // Start incremental marking and ensure that idle time handler can perform 1085 // Start incremental marking and ensure that idle time handler can perform
1084 // incremental steps. 1086 // incremental steps.
1085 void StartIdleIncrementalMarking(); 1087 void StartIdleIncrementalMarking();
1086 1088
1087 // Starts incremental marking assuming incremental marking is currently 1089 // Starts incremental marking assuming incremental marking is currently
1088 // stopped. 1090 // stopped.
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 2632
2631 private: 2633 private:
2632 friend class NewSpace; 2634 friend class NewSpace;
2633 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver); 2635 DISALLOW_COPY_AND_ASSIGN(InlineAllocationObserver);
2634 }; 2636 };
2635 2637
2636 } // namespace internal 2638 } // namespace internal
2637 } // namespace v8 2639 } // namespace v8
2638 2640
2639 #endif // V8_HEAP_HEAP_H_ 2641 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698