| 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 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3498 cons, | 3498 cons, |
| 3499 Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 3499 Handle<Object>(native_context()->initial_object_prototype(), isolate)); |
| 3500 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 3500 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); |
| 3501 DCHECK(atomics_object->IsJSObject()); | 3501 DCHECK(atomics_object->IsJSObject()); |
| 3502 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 3502 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); |
| 3503 | 3503 |
| 3504 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), | 3504 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), |
| 3505 Builtins::kAtomicsLoad, 2, true); | 3505 Builtins::kAtomicsLoad, 2, true); |
| 3506 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), | 3506 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), |
| 3507 Builtins::kAtomicsStore, 3, true); | 3507 Builtins::kAtomicsStore, 3, true); |
| 3508 SimpleInstallFunction(atomics_object, |
| 3509 factory->InternalizeUtf8String("exchange"), |
| 3510 Builtins::kAtomicsExchange, 3, true); |
| 3508 } | 3511 } |
| 3509 | 3512 |
| 3510 | 3513 |
| 3511 void Genesis::InitializeGlobal_harmony_simd() { | 3514 void Genesis::InitializeGlobal_harmony_simd() { |
| 3512 if (!FLAG_harmony_simd) return; | 3515 if (!FLAG_harmony_simd) return; |
| 3513 | 3516 |
| 3514 Handle<JSGlobalObject> global( | 3517 Handle<JSGlobalObject> global( |
| 3515 JSGlobalObject::cast(native_context()->global_object())); | 3518 JSGlobalObject::cast(native_context()->global_object())); |
| 3516 Isolate* isolate = global->GetIsolate(); | 3519 Isolate* isolate = global->GetIsolate(); |
| 3517 Factory* factory = isolate->factory(); | 3520 Factory* factory = isolate->factory(); |
| (...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4763 } | 4766 } |
| 4764 | 4767 |
| 4765 | 4768 |
| 4766 // Called when the top-level V8 mutex is destroyed. | 4769 // Called when the top-level V8 mutex is destroyed. |
| 4767 void Bootstrapper::FreeThreadResources() { | 4770 void Bootstrapper::FreeThreadResources() { |
| 4768 DCHECK(!IsActive()); | 4771 DCHECK(!IsActive()); |
| 4769 } | 4772 } |
| 4770 | 4773 |
| 4771 } // namespace internal | 4774 } // namespace internal |
| 4772 } // namespace v8 | 4775 } // namespace v8 |
| OLD | NEW |