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 3686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3697 cons, | 3697 cons, |
3698 Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 3698 Handle<Object>(native_context()->initial_object_prototype(), isolate)); |
3699 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); | 3699 Handle<JSObject> atomics_object = factory->NewJSObject(cons, TENURED); |
3700 DCHECK(atomics_object->IsJSObject()); | 3700 DCHECK(atomics_object->IsJSObject()); |
3701 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 3701 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); |
3702 | 3702 |
3703 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), | 3703 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), |
3704 Builtins::kAtomicsLoad, 2, true); | 3704 Builtins::kAtomicsLoad, 2, true); |
3705 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), | 3705 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), |
3706 Builtins::kAtomicsStore, 3, true); | 3706 Builtins::kAtomicsStore, 3, true); |
| 3707 SimpleInstallFunction(atomics_object, |
| 3708 factory->InternalizeUtf8String("exchange"), |
| 3709 Builtins::kAtomicsExchange, 3, true); |
3707 } | 3710 } |
3708 | 3711 |
3709 void Genesis::InitializeGlobal_harmony_array_prototype_values() { | 3712 void Genesis::InitializeGlobal_harmony_array_prototype_values() { |
3710 if (!FLAG_harmony_array_prototype_values) return; | 3713 if (!FLAG_harmony_array_prototype_values) return; |
3711 Handle<JSFunction> array_constructor(native_context()->array_function()); | 3714 Handle<JSFunction> array_constructor(native_context()->array_function()); |
3712 Handle<JSObject> array_prototype( | 3715 Handle<JSObject> array_prototype( |
3713 JSObject::cast(array_constructor->instance_prototype())); | 3716 JSObject::cast(array_constructor->instance_prototype())); |
3714 Handle<Object> values_iterator = | 3717 Handle<Object> values_iterator = |
3715 JSObject::GetProperty(array_prototype, factory()->iterator_symbol()) | 3718 JSObject::GetProperty(array_prototype, factory()->iterator_symbol()) |
3716 .ToHandleChecked(); | 3719 .ToHandleChecked(); |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5096 } | 5099 } |
5097 | 5100 |
5098 | 5101 |
5099 // Called when the top-level V8 mutex is destroyed. | 5102 // Called when the top-level V8 mutex is destroyed. |
5100 void Bootstrapper::FreeThreadResources() { | 5103 void Bootstrapper::FreeThreadResources() { |
5101 DCHECK(!IsActive()); | 5104 DCHECK(!IsActive()); |
5102 } | 5105 } |
5103 | 5106 |
5104 } // namespace internal | 5107 } // namespace internal |
5105 } // namespace v8 | 5108 } // namespace v8 |
OLD | NEW |