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

Side by Side Diff: src/bootstrapper.cc

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 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/bootstrapper.h ('k') | src/builtins/builtins.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 Handle<Map> sloppy_function_map_writable_prototype_; 263 Handle<Map> sloppy_function_map_writable_prototype_;
264 Handle<Map> strict_function_map_writable_prototype_; 264 Handle<Map> strict_function_map_writable_prototype_;
265 Handle<Map> class_function_map_; 265 Handle<Map> class_function_map_;
266 Handle<JSFunction> strict_poison_function_; 266 Handle<JSFunction> strict_poison_function_;
267 Handle<JSFunction> restricted_function_properties_thrower_; 267 Handle<JSFunction> restricted_function_properties_thrower_;
268 268
269 BootstrapperActive active_; 269 BootstrapperActive active_;
270 friend class Bootstrapper; 270 friend class Bootstrapper;
271 }; 271 };
272 272
273 273 void Bootstrapper::Iterate(RootVisitor* v) {
274 void Bootstrapper::Iterate(ObjectVisitor* v) {
275 extensions_cache_.Iterate(v); 274 extensions_cache_.Iterate(v);
276 v->Synchronize(VisitorSynchronization::kExtensions); 275 v->Synchronize(VisitorSynchronization::kExtensions);
277 } 276 }
278 277
279 Handle<Context> Bootstrapper::CreateEnvironment( 278 Handle<Context> Bootstrapper::CreateEnvironment(
280 MaybeHandle<JSGlobalProxy> maybe_global_proxy, 279 MaybeHandle<JSGlobalProxy> maybe_global_proxy,
281 v8::Local<v8::ObjectTemplate> global_proxy_template, 280 v8::Local<v8::ObjectTemplate> global_proxy_template,
282 v8::ExtensionConfiguration* extensions, size_t context_snapshot_index, 281 v8::ExtensionConfiguration* extensions, size_t context_snapshot_index,
283 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer, 282 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer,
284 GlobalContextType context_type) { 283 GlobalContextType context_type) {
(...skipping 4974 matching lines...) Expand 10 before | Expand all | Expand 10 after
5259 } 5258 }
5260 5259
5261 5260
5262 // Called when the top-level V8 mutex is destroyed. 5261 // Called when the top-level V8 mutex is destroyed.
5263 void Bootstrapper::FreeThreadResources() { 5262 void Bootstrapper::FreeThreadResources() {
5264 DCHECK(!IsActive()); 5263 DCHECK(!IsActive());
5265 } 5264 }
5266 5265
5267 } // namespace internal 5266 } // namespace internal
5268 } // namespace v8 5267 } // namespace v8
OLDNEW
« no previous file with comments | « src/bootstrapper.h ('k') | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698