| 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 3432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3443 // exposing debug global object doesn't make much sense). | 3443 // exposing debug global object doesn't make much sense). |
| 3444 debug_context->set_security_token(native_context->security_token()); | 3444 debug_context->set_security_token(native_context->security_token()); |
| 3445 Handle<String> debug_string = | 3445 Handle<String> debug_string = |
| 3446 factory->InternalizeUtf8String(FLAG_expose_debug_as); | 3446 factory->InternalizeUtf8String(FLAG_expose_debug_as); |
| 3447 uint32_t index; | 3447 uint32_t index; |
| 3448 if (debug_string->AsArrayIndex(&index)) return true; | 3448 if (debug_string->AsArrayIndex(&index)) return true; |
| 3449 Handle<Object> global_proxy(debug_context->global_proxy(), isolate); | 3449 Handle<Object> global_proxy(debug_context->global_proxy(), isolate); |
| 3450 JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM); | 3450 JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM); |
| 3451 } | 3451 } |
| 3452 | 3452 |
| 3453 if (FLAG_expose_wasm) { | 3453 WasmJs::Install(isolate, global); |
| 3454 WasmJs::Install(isolate, global); | |
| 3455 } | |
| 3456 | 3454 |
| 3457 return true; | 3455 return true; |
| 3458 } | 3456 } |
| 3459 | 3457 |
| 3460 | 3458 |
| 3461 static uint32_t Hash(RegisteredExtension* extension) { | 3459 static uint32_t Hash(RegisteredExtension* extension) { |
| 3462 return v8::internal::ComputePointerHash(extension); | 3460 return v8::internal::ComputePointerHash(extension); |
| 3463 } | 3461 } |
| 3464 | 3462 |
| 3465 Genesis::ExtensionStates::ExtensionStates() | 3463 Genesis::ExtensionStates::ExtensionStates() |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3947 } | 3945 } |
| 3948 | 3946 |
| 3949 | 3947 |
| 3950 // Called when the top-level V8 mutex is destroyed. | 3948 // Called when the top-level V8 mutex is destroyed. |
| 3951 void Bootstrapper::FreeThreadResources() { | 3949 void Bootstrapper::FreeThreadResources() { |
| 3952 DCHECK(!IsActive()); | 3950 DCHECK(!IsActive()); |
| 3953 } | 3951 } |
| 3954 | 3952 |
| 3955 } // namespace internal | 3953 } // namespace internal |
| 3956 } // namespace v8 | 3954 } // namespace v8 |
| OLD | NEW |