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

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

Issue 1079923003: Put newly allocated buffers at the right end of the buffers list (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 String* hidden_string() { return hidden_string_; } 848 String* hidden_string() { return hidden_string_; }
849 849
850 void set_native_contexts_list(Object* object) { 850 void set_native_contexts_list(Object* object) {
851 native_contexts_list_ = object; 851 native_contexts_list_ = object;
852 } 852 }
853 Object* native_contexts_list() const { return native_contexts_list_; } 853 Object* native_contexts_list() const { return native_contexts_list_; }
854 854
855 void set_array_buffers_list(Object* object) { array_buffers_list_ = object; } 855 void set_array_buffers_list(Object* object) { array_buffers_list_ = object; }
856 Object* array_buffers_list() const { return array_buffers_list_; } 856 Object* array_buffers_list() const { return array_buffers_list_; }
857 857
858 void set_last_array_buffer_in_list(Object* object) {
859 last_array_buffer_in_list_ = object;
860 }
861 Object* last_array_buffer_in_list() const {
862 return last_array_buffer_in_list_;
863 }
864
858 void set_new_array_buffer_views_list(Object* object) { 865 void set_new_array_buffer_views_list(Object* object) {
859 new_array_buffer_views_list_ = object; 866 new_array_buffer_views_list_ = object;
860 } 867 }
861 Object* new_array_buffer_views_list() const { 868 Object* new_array_buffer_views_list() const {
862 return new_array_buffer_views_list_; 869 return new_array_buffer_views_list_;
863 } 870 }
864 871
865 void set_allocation_sites_list(Object* object) { 872 void set_allocation_sites_list(Object* object) {
866 allocation_sites_list_ = object; 873 allocation_sites_list_ = object;
867 } 874 }
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 bool old_gen_exhausted_; 1638 bool old_gen_exhausted_;
1632 1639
1633 // Indicates that inline bump-pointer allocation has been globally disabled 1640 // Indicates that inline bump-pointer allocation has been globally disabled
1634 // for all spaces. This is used to disable allocations in generated code. 1641 // for all spaces. This is used to disable allocations in generated code.
1635 bool inline_allocation_disabled_; 1642 bool inline_allocation_disabled_;
1636 1643
1637 // Weak list heads, threaded through the objects. 1644 // Weak list heads, threaded through the objects.
1638 // List heads are initialized lazily and contain the undefined_value at start. 1645 // List heads are initialized lazily and contain the undefined_value at start.
1639 Object* native_contexts_list_; 1646 Object* native_contexts_list_;
1640 Object* array_buffers_list_; 1647 Object* array_buffers_list_;
1648 Object* last_array_buffer_in_list_;
1641 Object* allocation_sites_list_; 1649 Object* allocation_sites_list_;
1642 1650
1643 // This is a global list of array buffer views in new space. When the views 1651 // This is a global list of array buffer views in new space. When the views
1644 // get promoted, they are removed form the list and added to the corresponding 1652 // get promoted, they are removed form the list and added to the corresponding
1645 // array buffer. 1653 // array buffer.
1646 Object* new_array_buffer_views_list_; 1654 Object* new_array_buffer_views_list_;
1647 1655
1648 // List of encountered weak collections (JSWeakMap and JSWeakSet) during 1656 // List of encountered weak collections (JSWeakMap and JSWeakSet) during
1649 // marking. It is initialized during marking, destroyed after marking and 1657 // marking. It is initialized during marking, destroyed after marking and
1650 // contains Smi(0) while marking is not active. 1658 // contains Smi(0) while marking is not active.
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2598 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2606 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2599 2607
2600 private: 2608 private:
2601 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2609 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2602 }; 2610 };
2603 #endif // DEBUG 2611 #endif // DEBUG
2604 } 2612 }
2605 } // namespace v8::internal 2613 } // namespace v8::internal
2606 2614
2607 #endif // V8_HEAP_HEAP_H_ 2615 #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