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" |
11 #include "src/compiler.h" | 11 #include "src/compiler.h" |
12 #include "src/extensions/externalize-string-extension.h" | 12 #include "src/extensions/externalize-string-extension.h" |
13 #include "src/extensions/free-buffer-extension.h" | 13 #include "src/extensions/free-buffer-extension.h" |
14 #include "src/extensions/gc-extension.h" | 14 #include "src/extensions/gc-extension.h" |
15 #include "src/extensions/ignition-statistics-extension.h" | 15 #include "src/extensions/ignition-statistics-extension.h" |
16 #include "src/extensions/statistics-extension.h" | 16 #include "src/extensions/statistics-extension.h" |
17 #include "src/extensions/trigger-failure-extension.h" | 17 #include "src/extensions/trigger-failure-extension.h" |
| 18 #include "src/ffi/ffi-compiler.h" |
18 #include "src/heap/heap.h" | 19 #include "src/heap/heap.h" |
19 #include "src/isolate-inl.h" | 20 #include "src/isolate-inl.h" |
20 #include "src/snapshot/natives.h" | 21 #include "src/snapshot/natives.h" |
21 #include "src/snapshot/snapshot.h" | 22 #include "src/snapshot/snapshot.h" |
22 #include "src/wasm/wasm-js.h" | 23 #include "src/wasm/wasm-js.h" |
23 | 24 |
24 #if V8_I18N_SUPPORT | 25 #if V8_I18N_SUPPORT |
25 #include "src/i18n.h" | 26 #include "src/i18n.h" |
26 #endif // V8_I18N_SUPPORT | 27 #endif // V8_I18N_SUPPORT |
27 | 28 |
(...skipping 4161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4189 Handle<JSObject> Error = isolate->error_function(); | 4190 Handle<JSObject> Error = isolate->error_function(); |
4190 Handle<String> name = | 4191 Handle<String> name = |
4191 factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("stackTraceLimit")); | 4192 factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("stackTraceLimit")); |
4192 Handle<Smi> stack_trace_limit(Smi::FromInt(FLAG_stack_trace_limit), isolate); | 4193 Handle<Smi> stack_trace_limit(Smi::FromInt(FLAG_stack_trace_limit), isolate); |
4193 JSObject::AddProperty(Error, name, stack_trace_limit, NONE); | 4194 JSObject::AddProperty(Error, name, stack_trace_limit, NONE); |
4194 | 4195 |
4195 if (FLAG_expose_wasm || FLAG_validate_asm) { | 4196 if (FLAG_expose_wasm || FLAG_validate_asm) { |
4196 WasmJs::Install(isolate); | 4197 WasmJs::Install(isolate); |
4197 } | 4198 } |
4198 | 4199 |
| 4200 InstallFFIMap(isolate); |
| 4201 |
4199 return true; | 4202 return true; |
4200 } | 4203 } |
4201 | 4204 |
4202 | 4205 |
4203 static uint32_t Hash(RegisteredExtension* extension) { | 4206 static uint32_t Hash(RegisteredExtension* extension) { |
4204 return v8::internal::ComputePointerHash(extension); | 4207 return v8::internal::ComputePointerHash(extension); |
4205 } | 4208 } |
4206 | 4209 |
4207 Genesis::ExtensionStates::ExtensionStates() : map_(8) {} | 4210 Genesis::ExtensionStates::ExtensionStates() : map_(8) {} |
4208 | 4211 |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4778 } | 4781 } |
4779 | 4782 |
4780 | 4783 |
4781 // Called when the top-level V8 mutex is destroyed. | 4784 // Called when the top-level V8 mutex is destroyed. |
4782 void Bootstrapper::FreeThreadResources() { | 4785 void Bootstrapper::FreeThreadResources() { |
4783 DCHECK(!IsActive()); | 4786 DCHECK(!IsActive()); |
4784 } | 4787 } |
4785 | 4788 |
4786 } // namespace internal | 4789 } // namespace internal |
4787 } // namespace v8 | 4790 } // namespace v8 |
OLD | NEW |