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

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

Issue 1135353003: Factor out handling of mixed objects preprocessing after migration (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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') | src/heap/mark-compact.cc » ('J')
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 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 // This event is triggered after successful allocation of a new object made 1509 // This event is triggered after successful allocation of a new object made
1510 // by runtime. Allocations of target space for object evacuation do not 1510 // by runtime. Allocations of target space for object evacuation do not
1511 // trigger the event. In order to track ALL allocations one must turn off 1511 // trigger the event. In order to track ALL allocations one must turn off
1512 // FLAG_inline_new and FLAG_use_allocation_folding. 1512 // FLAG_inline_new and FLAG_use_allocation_folding.
1513 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); 1513 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes);
1514 1514
1515 // This event is triggered after object is moved to a new place. 1515 // This event is triggered after object is moved to a new place.
1516 inline void OnMoveEvent(HeapObject* target, HeapObject* source, 1516 inline void OnMoveEvent(HeapObject* target, HeapObject* source,
1517 int size_in_bytes); 1517 int size_in_bytes);
1518 1518
1519 void MigrateMixedObjectInNewSpaceEpilog(HeapObject* dst);
1520
1519 bool deserialization_complete() const { return deserialization_complete_; } 1521 bool deserialization_complete() const { return deserialization_complete_; }
1520 1522
1521 void RegisterNewArrayBuffer(void* data, size_t length); 1523 void RegisterNewArrayBuffer(void* data, size_t length);
1522 void UnregisterArrayBuffer(void* data); 1524 void UnregisterArrayBuffer(void* data);
1523 void RegisterLiveArrayBuffer(void* data); 1525 void RegisterLiveArrayBuffer(void* data);
1524 void FreeDeadArrayBuffers(); 1526 void FreeDeadArrayBuffers();
1525 1527
1526 protected: 1528 protected:
1527 // Methods made available to tests. 1529 // Methods made available to tests.
1528 1530
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2649 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2651 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2650 2652
2651 private: 2653 private:
2652 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2654 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2653 }; 2655 };
2654 #endif // DEBUG 2656 #endif // DEBUG
2655 } 2657 }
2656 } // namespace v8::internal 2658 } // namespace v8::internal
2657 2659
2658 #endif // V8_HEAP_HEAP_H_ 2660 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698