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

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

Issue 2955793002: Revert of Make some functions that are hit during renderer startup available for inlining (Closed)
Patch Set: Created 3 years, 5 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/objects-visiting-inl.h ('k') | src/heap/scavenger.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 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_HEAP_SCAVENGER_H_ 5 #ifndef V8_HEAP_SCAVENGER_H_
6 #define V8_HEAP_SCAVENGER_H_ 6 #define V8_HEAP_SCAVENGER_H_
7 7
8 #include "src/heap/objects-visiting.h" 8 #include "src/heap/objects-visiting.h"
9 #include "src/heap/slot-set.h" 9 #include "src/heap/slot-set.h"
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 // Callback function passed to Heap::Iterate etc. Copies an object if 24 // Callback function passed to Heap::Iterate etc. Copies an object if
25 // necessary, the object might be promoted to an old space. The caller must 25 // necessary, the object might be promoted to an old space. The caller must
26 // ensure the precondition that the object is (a) a heap object and (b) in 26 // ensure the precondition that the object is (a) a heap object and (b) in
27 // the heap's from space. 27 // the heap's from space.
28 static inline void ScavengeObject(HeapObject** p, HeapObject* object); 28 static inline void ScavengeObject(HeapObject** p, HeapObject* object);
29 static inline SlotCallbackResult CheckAndScavengeObject(Heap* heap, 29 static inline SlotCallbackResult CheckAndScavengeObject(Heap* heap,
30 Address slot_address); 30 Address slot_address);
31 31
32 // Slow part of {ScavengeObject} above. 32 // Slow part of {ScavengeObject} above.
33 static inline void ScavengeObjectSlow(HeapObject** p, HeapObject* object); 33 static void ScavengeObjectSlow(HeapObject** p, HeapObject* object);
34 34
35 // Chooses an appropriate static visitor table depending on the current state 35 // Chooses an appropriate static visitor table depending on the current state
36 // of the heap (i.e. incremental marking, logging and profiling). 36 // of the heap (i.e. incremental marking, logging and profiling).
37 void SelectScavengingVisitorsTable(); 37 void SelectScavengingVisitorsTable();
38 38
39 Isolate* isolate(); 39 Isolate* isolate();
40 Heap* heap() { return heap_; } 40 Heap* heap() { return heap_; }
41 41
42 private: 42 private:
43 Heap* heap_; 43 Heap* heap_;
(...skipping 22 matching lines...) Expand all
66 Object** end) final; 66 Object** end) final;
67 67
68 private: 68 private:
69 Heap* heap_; 69 Heap* heap_;
70 }; 70 };
71 71
72 } // namespace internal 72 } // namespace internal
73 } // namespace v8 73 } // namespace v8
74 74
75 #endif // V8_HEAP_SCAVENGER_H_ 75 #endif // V8_HEAP_SCAVENGER_H_
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698