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 4008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4019 v8::ExtensionConfiguration* extensions) { | 4019 v8::ExtensionConfiguration* extensions) { |
4020 Isolate* isolate = native_context->GetIsolate(); | 4020 Isolate* isolate = native_context->GetIsolate(); |
4021 ExtensionStates extension_states; // All extensions have state UNVISITED. | 4021 ExtensionStates extension_states; // All extensions have state UNVISITED. |
4022 return InstallAutoExtensions(isolate, &extension_states) && | 4022 return InstallAutoExtensions(isolate, &extension_states) && |
4023 (!FLAG_expose_free_buffer || | 4023 (!FLAG_expose_free_buffer || |
4024 InstallExtension(isolate, "v8/free-buffer", &extension_states)) && | 4024 InstallExtension(isolate, "v8/free-buffer", &extension_states)) && |
4025 (!FLAG_expose_gc || | 4025 (!FLAG_expose_gc || |
4026 InstallExtension(isolate, "v8/gc", &extension_states)) && | 4026 InstallExtension(isolate, "v8/gc", &extension_states)) && |
4027 (!FLAG_expose_externalize_string || | 4027 (!FLAG_expose_externalize_string || |
4028 InstallExtension(isolate, "v8/externalize", &extension_states)) && | 4028 InstallExtension(isolate, "v8/externalize", &extension_states)) && |
4029 (!FLAG_track_gc_object_stats || | 4029 (!FLAG_gc_stats || |
4030 InstallExtension(isolate, "v8/statistics", &extension_states)) && | 4030 InstallExtension(isolate, "v8/statistics", &extension_states)) && |
4031 (!FLAG_expose_trigger_failure || | 4031 (!FLAG_expose_trigger_failure || |
4032 InstallExtension(isolate, "v8/trigger-failure", &extension_states)) && | 4032 InstallExtension(isolate, "v8/trigger-failure", &extension_states)) && |
4033 (!FLAG_trace_ignition_dispatches || | 4033 (!FLAG_trace_ignition_dispatches || |
4034 InstallExtension(isolate, "v8/ignition-statistics", | 4034 InstallExtension(isolate, "v8/ignition-statistics", |
4035 &extension_states)) && | 4035 &extension_states)) && |
4036 InstallRequestedExtensions(isolate, extensions, &extension_states); | 4036 InstallRequestedExtensions(isolate, extensions, &extension_states); |
4037 } | 4037 } |
4038 | 4038 |
4039 | 4039 |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4543 } | 4543 } |
4544 | 4544 |
4545 | 4545 |
4546 // Called when the top-level V8 mutex is destroyed. | 4546 // Called when the top-level V8 mutex is destroyed. |
4547 void Bootstrapper::FreeThreadResources() { | 4547 void Bootstrapper::FreeThreadResources() { |
4548 DCHECK(!IsActive()); | 4548 DCHECK(!IsActive()); |
4549 } | 4549 } |
4550 | 4550 |
4551 } // namespace internal | 4551 } // namespace internal |
4552 } // namespace v8 | 4552 } // namespace v8 |
OLD | NEW |