| 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 3469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3480 cons, | 3480 cons, |
| 3481 Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 3481 Handle<Object>(native_context()->initial_object_prototype(), isolate)); |
| 3482 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 3482 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); |
| 3483 DCHECK(atomics_object->IsJSObject()); | 3483 DCHECK(atomics_object->IsJSObject()); |
| 3484 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 3484 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); |
| 3485 | 3485 |
| 3486 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), | 3486 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), |
| 3487 Builtins::kAtomicsLoad, 2, true); | 3487 Builtins::kAtomicsLoad, 2, true); |
| 3488 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), | 3488 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), |
| 3489 Builtins::kAtomicsStore, 3, true); | 3489 Builtins::kAtomicsStore, 3, true); |
| 3490 SimpleInstallFunction(atomics_object, |
| 3491 factory->InternalizeUtf8String("exchange"), |
| 3492 Builtins::kAtomicsExchange, 3, true); |
| 3490 } | 3493 } |
| 3491 | 3494 |
| 3492 | 3495 |
| 3493 void Genesis::InitializeGlobal_harmony_simd() { | 3496 void Genesis::InitializeGlobal_harmony_simd() { |
| 3494 if (!FLAG_harmony_simd) return; | 3497 if (!FLAG_harmony_simd) return; |
| 3495 | 3498 |
| 3496 Handle<JSGlobalObject> global( | 3499 Handle<JSGlobalObject> global( |
| 3497 JSGlobalObject::cast(native_context()->global_object())); | 3500 JSGlobalObject::cast(native_context()->global_object())); |
| 3498 Isolate* isolate = global->GetIsolate(); | 3501 Isolate* isolate = global->GetIsolate(); |
| 3499 Factory* factory = isolate->factory(); | 3502 Factory* factory = isolate->factory(); |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4742 } | 4745 } |
| 4743 | 4746 |
| 4744 | 4747 |
| 4745 // Called when the top-level V8 mutex is destroyed. | 4748 // Called when the top-level V8 mutex is destroyed. |
| 4746 void Bootstrapper::FreeThreadResources() { | 4749 void Bootstrapper::FreeThreadResources() { |
| 4747 DCHECK(!IsActive()); | 4750 DCHECK(!IsActive()); |
| 4748 } | 4751 } |
| 4749 | 4752 |
| 4750 } // namespace internal | 4753 } // namespace internal |
| 4751 } // namespace v8 | 4754 } // namespace v8 |
| OLD | NEW |