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

Side by Side Diff: src/snapshot/startup-serializer.cc

Issue 1844283002: [heap] Remove store buffer top from roots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « src/heap/store-buffer-inl.h ('k') | src/x64/macro-assembler-x64.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/snapshot/startup-serializer.h" 5 #include "src/snapshot/startup-serializer.h"
6 6
7 #include "src/objects-inl.h" 7 #include "src/objects-inl.h"
8 #include "src/v8threads.h" 8 #include "src/v8threads.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 skip = 0; 143 skip = 0;
144 } 144 }
145 } 145 }
146 FlushSkip(skip); 146 FlushSkip(skip);
147 } else { 147 } else {
148 Serializer::VisitPointers(start, end); 148 Serializer::VisitPointers(start, end);
149 } 149 }
150 } 150 }
151 151
152 bool StartupSerializer::RootShouldBeSkipped(int root_index) { 152 bool StartupSerializer::RootShouldBeSkipped(int root_index) {
153 if (root_index == Heap::kStoreBufferTopRootIndex || 153 if (root_index == Heap::kStackLimitRootIndex ||
154 root_index == Heap::kStackLimitRootIndex ||
155 root_index == Heap::kRealStackLimitRootIndex) { 154 root_index == Heap::kRealStackLimitRootIndex) {
156 return true; 155 return true;
157 } 156 }
158 return Heap::RootIsImmortalImmovable(root_index) != 157 return Heap::RootIsImmortalImmovable(root_index) !=
159 serializing_immortal_immovables_roots_; 158 serializing_immortal_immovables_roots_;
160 } 159 }
161 160
162 } // namespace internal 161 } // namespace internal
163 } // namespace v8 162 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/store-buffer-inl.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698