OLD | NEW |
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 Loading... |
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 |
OLD | NEW |