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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |