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 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4009 v8::ExtensionConfiguration* extensions) { | 4009 v8::ExtensionConfiguration* extensions) { |
4010 Isolate* isolate = native_context->GetIsolate(); | 4010 Isolate* isolate = native_context->GetIsolate(); |
4011 ExtensionStates extension_states; // All extensions have state UNVISITED. | 4011 ExtensionStates extension_states; // All extensions have state UNVISITED. |
4012 return InstallAutoExtensions(isolate, &extension_states) && | 4012 return InstallAutoExtensions(isolate, &extension_states) && |
4013 (!FLAG_expose_free_buffer || | 4013 (!FLAG_expose_free_buffer || |
4014 InstallExtension(isolate, "v8/free-buffer", &extension_states)) && | 4014 InstallExtension(isolate, "v8/free-buffer", &extension_states)) && |
4015 (!FLAG_expose_gc || | 4015 (!FLAG_expose_gc || |
4016 InstallExtension(isolate, "v8/gc", &extension_states)) && | 4016 InstallExtension(isolate, "v8/gc", &extension_states)) && |
4017 (!FLAG_expose_externalize_string || | 4017 (!FLAG_expose_externalize_string || |
4018 InstallExtension(isolate, "v8/externalize", &extension_states)) && | 4018 InstallExtension(isolate, "v8/externalize", &extension_states)) && |
4019 (!FLAG_track_gc_object_stats || | 4019 (!FLAG_gc_stats || |
4020 InstallExtension(isolate, "v8/statistics", &extension_states)) && | 4020 InstallExtension(isolate, "v8/statistics", &extension_states)) && |
4021 (!FLAG_expose_trigger_failure || | 4021 (!FLAG_expose_trigger_failure || |
4022 InstallExtension(isolate, "v8/trigger-failure", &extension_states)) && | 4022 InstallExtension(isolate, "v8/trigger-failure", &extension_states)) && |
4023 (!FLAG_trace_ignition_dispatches || | 4023 (!FLAG_trace_ignition_dispatches || |
4024 InstallExtension(isolate, "v8/ignition-statistics", | 4024 InstallExtension(isolate, "v8/ignition-statistics", |
4025 &extension_states)) && | 4025 &extension_states)) && |
4026 InstallRequestedExtensions(isolate, extensions, &extension_states); | 4026 InstallRequestedExtensions(isolate, extensions, &extension_states); |
4027 } | 4027 } |
4028 | 4028 |
4029 | 4029 |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4540 } | 4540 } |
4541 | 4541 |
4542 | 4542 |
4543 // Called when the top-level V8 mutex is destroyed. | 4543 // Called when the top-level V8 mutex is destroyed. |
4544 void Bootstrapper::FreeThreadResources() { | 4544 void Bootstrapper::FreeThreadResources() { |
4545 DCHECK(!IsActive()); | 4545 DCHECK(!IsActive()); |
4546 } | 4546 } |
4547 | 4547 |
4548 } // namespace internal | 4548 } // namespace internal |
4549 } // namespace v8 | 4549 } // namespace v8 |
OLD | NEW |