OLD | NEW |
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 Handle<Map> sloppy_function_map_writable_prototype_; | 303 Handle<Map> sloppy_function_map_writable_prototype_; |
304 Handle<Map> strict_function_map_writable_prototype_; | 304 Handle<Map> strict_function_map_writable_prototype_; |
305 Handle<Map> class_function_map_; | 305 Handle<Map> class_function_map_; |
306 Handle<JSFunction> strict_poison_function_; | 306 Handle<JSFunction> strict_poison_function_; |
307 Handle<JSFunction> restricted_function_properties_thrower_; | 307 Handle<JSFunction> restricted_function_properties_thrower_; |
308 | 308 |
309 BootstrapperActive active_; | 309 BootstrapperActive active_; |
310 friend class Bootstrapper; | 310 friend class Bootstrapper; |
311 }; | 311 }; |
312 | 312 |
313 | 313 void Bootstrapper::Iterate(RootVisitor* v) { |
314 void Bootstrapper::Iterate(ObjectVisitor* v) { | |
315 extensions_cache_.Iterate(v); | 314 extensions_cache_.Iterate(v); |
316 v->Synchronize(VisitorSynchronization::kExtensions); | 315 v->Synchronize(VisitorSynchronization::kExtensions); |
317 } | 316 } |
318 | 317 |
319 Handle<Context> Bootstrapper::CreateEnvironment( | 318 Handle<Context> Bootstrapper::CreateEnvironment( |
320 MaybeHandle<JSGlobalProxy> maybe_global_proxy, | 319 MaybeHandle<JSGlobalProxy> maybe_global_proxy, |
321 v8::Local<v8::ObjectTemplate> global_proxy_template, | 320 v8::Local<v8::ObjectTemplate> global_proxy_template, |
322 v8::ExtensionConfiguration* extensions, size_t context_snapshot_index, | 321 v8::ExtensionConfiguration* extensions, size_t context_snapshot_index, |
323 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer, | 322 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer, |
324 GlobalContextType context_type) { | 323 GlobalContextType context_type) { |
(...skipping 4967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5292 } | 5291 } |
5293 | 5292 |
5294 | 5293 |
5295 // Called when the top-level V8 mutex is destroyed. | 5294 // Called when the top-level V8 mutex is destroyed. |
5296 void Bootstrapper::FreeThreadResources() { | 5295 void Bootstrapper::FreeThreadResources() { |
5297 DCHECK(!IsActive()); | 5296 DCHECK(!IsActive()); |
5298 } | 5297 } |
5299 | 5298 |
5300 } // namespace internal | 5299 } // namespace internal |
5301 } // namespace v8 | 5300 } // namespace v8 |
OLD | NEW |