| 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/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
| (...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2493 Handle<JSFunction> cons = factory->NewFunction(name); | 2493 Handle<JSFunction> cons = factory->NewFunction(name); |
| 2494 JSFunction::SetInstancePrototype( | 2494 JSFunction::SetInstancePrototype( |
| 2495 cons, | 2495 cons, |
| 2496 Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 2496 Handle<Object>(native_context()->initial_object_prototype(), isolate)); |
| 2497 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 2497 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); |
| 2498 DCHECK(atomics_object->IsJSObject()); | 2498 DCHECK(atomics_object->IsJSObject()); |
| 2499 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 2499 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); |
| 2500 | 2500 |
| 2501 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), | 2501 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), |
| 2502 Builtins::kAtomicsLoad, 2, true); | 2502 Builtins::kAtomicsLoad, 2, true); |
| 2503 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), |
| 2504 Builtins::kAtomicsStore, 3, true); |
| 2503 } | 2505 } |
| 2504 | 2506 |
| 2505 | 2507 |
| 2506 void Genesis::InitializeGlobal_harmony_simd() { | 2508 void Genesis::InitializeGlobal_harmony_simd() { |
| 2507 if (!FLAG_harmony_simd) return; | 2509 if (!FLAG_harmony_simd) return; |
| 2508 | 2510 |
| 2509 Handle<JSGlobalObject> global( | 2511 Handle<JSGlobalObject> global( |
| 2510 JSGlobalObject::cast(native_context()->global_object())); | 2512 JSGlobalObject::cast(native_context()->global_object())); |
| 2511 Isolate* isolate = global->GetIsolate(); | 2513 Isolate* isolate = global->GetIsolate(); |
| 2512 Factory* factory = isolate->factory(); | 2514 Factory* factory = isolate->factory(); |
| (...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3685 } | 3687 } |
| 3686 | 3688 |
| 3687 | 3689 |
| 3688 // Called when the top-level V8 mutex is destroyed. | 3690 // Called when the top-level V8 mutex is destroyed. |
| 3689 void Bootstrapper::FreeThreadResources() { | 3691 void Bootstrapper::FreeThreadResources() { |
| 3690 DCHECK(!IsActive()); | 3692 DCHECK(!IsActive()); |
| 3691 } | 3693 } |
| 3692 | 3694 |
| 3693 } // namespace internal | 3695 } // namespace internal |
| 3694 } // namespace v8 | 3696 } // namespace v8 |
| OLD | NEW |