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

Side by Side Diff: src/heap.h

Issue 40063002: Bookkeeping for allocation site pretenuring (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 void TracePathToGlobal(); 1449 void TracePathToGlobal();
1450 #endif 1450 #endif
1451 1451
1452 // Callback function passed to Heap::Iterate etc. Copies an object if 1452 // Callback function passed to Heap::Iterate etc. Copies an object if
1453 // necessary, the object might be promoted to an old space. The caller must 1453 // necessary, the object might be promoted to an old space. The caller must
1454 // ensure the precondition that the object is (a) a heap object and (b) in 1454 // ensure the precondition that the object is (a) a heap object and (b) in
1455 // the heap's from space. 1455 // the heap's from space.
1456 static inline void ScavengePointer(HeapObject** p); 1456 static inline void ScavengePointer(HeapObject** p);
1457 static inline void ScavengeObject(HeapObject** p, HeapObject* object); 1457 static inline void ScavengeObject(HeapObject** p, HeapObject* object);
1458 1458
1459 // An object may have an AllocationSite associated with it through a trailing
1460 // AllocationMemento. Its feedback should be updated when objects are found
1461 // in the heap.
1462 static inline void UpdateAllocationSiteFeedback(HeapObject* object);
1463
1459 // Support for partial snapshots. After calling this we have a linear 1464 // Support for partial snapshots. After calling this we have a linear
1460 // space to write objects in each space. 1465 // space to write objects in each space.
1461 void ReserveSpace(int *sizes, Address* addresses); 1466 void ReserveSpace(int *sizes, Address* addresses);
1462 1467
1463 // 1468 //
1464 // Support for the API. 1469 // Support for the API.
1465 // 1470 //
1466 1471
1467 bool CreateApiObjects(); 1472 bool CreateApiObjects();
1468 1473
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 int always_allocate_scope_depth_; 1890 int always_allocate_scope_depth_;
1886 int linear_allocation_scope_depth_; 1891 int linear_allocation_scope_depth_;
1887 1892
1888 // For keeping track of context disposals. 1893 // For keeping track of context disposals.
1889 int contexts_disposed_; 1894 int contexts_disposed_;
1890 1895
1891 int global_ic_age_; 1896 int global_ic_age_;
1892 1897
1893 bool flush_monomorphic_ics_; 1898 bool flush_monomorphic_ics_;
1894 1899
1895 // AllocationMementos found in new space.
1896 int allocation_mementos_found_;
1897
1898 int scan_on_scavenge_pages_; 1900 int scan_on_scavenge_pages_;
1899 1901
1900 NewSpace new_space_; 1902 NewSpace new_space_;
1901 OldSpace* old_pointer_space_; 1903 OldSpace* old_pointer_space_;
1902 OldSpace* old_data_space_; 1904 OldSpace* old_data_space_;
1903 OldSpace* code_space_; 1905 OldSpace* code_space_;
1904 MapSpace* map_space_; 1906 MapSpace* map_space_;
1905 CellSpace* cell_space_; 1907 CellSpace* cell_space_;
1906 PropertyCellSpace* property_cell_space_; 1908 PropertyCellSpace* property_cell_space_;
1907 LargeObjectSpace* lo_space_; 1909 LargeObjectSpace* lo_space_;
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
3084 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3086 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3085 3087
3086 private: 3088 private:
3087 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3089 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3088 }; 3090 };
3089 #endif // DEBUG 3091 #endif // DEBUG
3090 3092
3091 } } // namespace v8::internal 3093 } } // namespace v8::internal
3092 3094
3093 #endif // V8_HEAP_H_ 3095 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698