OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 Handle<Map> strict_mode_function_instance_map_writable_prototype_; | 292 Handle<Map> strict_mode_function_instance_map_writable_prototype_; |
293 Handle<JSFunction> throw_type_error_function; | 293 Handle<JSFunction> throw_type_error_function; |
294 | 294 |
295 BootstrapperActive active_; | 295 BootstrapperActive active_; |
296 friend class Bootstrapper; | 296 friend class Bootstrapper; |
297 }; | 297 }; |
298 | 298 |
299 | 299 |
300 void Bootstrapper::Iterate(ObjectVisitor* v) { | 300 void Bootstrapper::Iterate(ObjectVisitor* v) { |
301 extensions_cache_.Iterate(v); | 301 extensions_cache_.Iterate(v); |
302 v->Synchronize("Extensions"); | 302 v->Synchronize(VisitorSynchronization::kExtensions); |
303 } | 303 } |
304 | 304 |
305 | 305 |
306 Handle<Context> Bootstrapper::CreateEnvironment( | 306 Handle<Context> Bootstrapper::CreateEnvironment( |
307 Isolate* isolate, | 307 Isolate* isolate, |
308 Handle<Object> global_object, | 308 Handle<Object> global_object, |
309 v8::Handle<v8::ObjectTemplate> global_template, | 309 v8::Handle<v8::ObjectTemplate> global_template, |
310 v8::ExtensionConfiguration* extensions) { | 310 v8::ExtensionConfiguration* extensions) { |
311 HandleScope scope; | 311 HandleScope scope; |
312 Handle<Context> env; | 312 Handle<Context> env; |
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 return from + sizeof(NestingCounterType); | 2355 return from + sizeof(NestingCounterType); |
2356 } | 2356 } |
2357 | 2357 |
2358 | 2358 |
2359 // Called when the top-level V8 mutex is destroyed. | 2359 // Called when the top-level V8 mutex is destroyed. |
2360 void Bootstrapper::FreeThreadResources() { | 2360 void Bootstrapper::FreeThreadResources() { |
2361 ASSERT(!IsActive()); | 2361 ASSERT(!IsActive()); |
2362 } | 2362 } |
2363 | 2363 |
2364 } } // namespace v8::internal | 2364 } } // namespace v8::internal |
OLD | NEW |