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

Side by Side Diff: src/heap/incremental-marking.h

Issue 2342563002: [d8] Fix the shared-library build (Closed)
Patch Set: Mark as extern in .cc Created 4 years, 3 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/heap.h ('k') | src/heap/mark-compact.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 // 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_INCREMENTAL_MARKING_H_ 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_
6 #define V8_HEAP_INCREMENTAL_MARKING_H_ 6 #define V8_HEAP_INCREMENTAL_MARKING_H_
7 7
8 #include "src/cancelable-task.h" 8 #include "src/cancelable-task.h"
9 #include "src/execution.h" 9 #include "src/execution.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // 147 //
148 // No slots in white objects should be recorded, as some slots are typed and 148 // No slots in white objects should be recorded, as some slots are typed and
149 // cannot be interpreted correctly if the underlying object does not survive 149 // cannot be interpreted correctly if the underlying object does not survive
150 // the incremental cycle (stays white). 150 // the incremental cycle (stays white).
151 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value)); 151 INLINE(bool BaseRecordWrite(HeapObject* obj, Object* value));
152 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); 152 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value));
153 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value)); 153 INLINE(void RecordWriteIntoCode(Code* host, RelocInfo* rinfo, Object* value));
154 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot, 154 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, Object** slot,
155 Code* value)); 155 Code* value));
156 156
157 157 V8_EXPORT_PRIVATE void RecordWriteSlow(HeapObject* obj, Object** slot,
158 void RecordWriteSlow(HeapObject* obj, Object** slot, Object* value); 158 Object* value);
159 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value); 159 void RecordWriteIntoCodeSlow(Code* host, RelocInfo* rinfo, Object* value);
160 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value); 160 void RecordWriteOfCodeEntrySlow(JSFunction* host, Object** slot, Code* value);
161 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value); 161 void RecordCodeTargetPatch(Code* host, Address pc, HeapObject* value);
162 void RecordCodeTargetPatch(Address pc, HeapObject* value); 162 void RecordCodeTargetPatch(Address pc, HeapObject* value);
163 163
164 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit); 164 void WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit);
165 165
166 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { 166 inline void SetOldSpacePageFlags(MemoryChunk* chunk) {
167 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); 167 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting());
168 } 168 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 GCRequestType request_type_; 315 GCRequestType request_type_;
316 316
317 IncrementalMarkingJob incremental_marking_job_; 317 IncrementalMarkingJob incremental_marking_job_;
318 318
319 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 319 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
320 }; 320 };
321 } // namespace internal 321 } // namespace internal
322 } // namespace v8 322 } // namespace v8
323 323
324 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 324 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698