| 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 3719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3730 DCHECK(atomics_object->IsJSObject()); | 3730 DCHECK(atomics_object->IsJSObject()); |
| 3731 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); | 3731 JSObject::AddProperty(global, name, atomics_object, DONT_ENUM); |
| 3732 | 3732 |
| 3733 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), | 3733 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("load"), |
| 3734 Builtins::kAtomicsLoad, 2, true); | 3734 Builtins::kAtomicsLoad, 2, true); |
| 3735 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), | 3735 SimpleInstallFunction(atomics_object, factory->InternalizeUtf8String("store"), |
| 3736 Builtins::kAtomicsStore, 3, true); | 3736 Builtins::kAtomicsStore, 3, true); |
| 3737 SimpleInstallFunction(atomics_object, | 3737 SimpleInstallFunction(atomics_object, |
| 3738 factory->InternalizeUtf8String("exchange"), | 3738 factory->InternalizeUtf8String("exchange"), |
| 3739 Builtins::kAtomicsExchange, 3, true); | 3739 Builtins::kAtomicsExchange, 3, true); |
| 3740 SimpleInstallFunction(atomics_object, |
| 3741 factory->InternalizeUtf8String("compareExchange"), |
| 3742 Builtins::kAtomicsCompareExchange, 4, true); |
| 3740 } | 3743 } |
| 3741 | 3744 |
| 3742 void Genesis::InitializeGlobal_harmony_array_prototype_values() { | 3745 void Genesis::InitializeGlobal_harmony_array_prototype_values() { |
| 3743 if (!FLAG_harmony_array_prototype_values) return; | 3746 if (!FLAG_harmony_array_prototype_values) return; |
| 3744 Handle<JSFunction> array_constructor(native_context()->array_function()); | 3747 Handle<JSFunction> array_constructor(native_context()->array_function()); |
| 3745 Handle<JSObject> array_prototype( | 3748 Handle<JSObject> array_prototype( |
| 3746 JSObject::cast(array_constructor->instance_prototype())); | 3749 JSObject::cast(array_constructor->instance_prototype())); |
| 3747 Handle<Object> values_iterator = | 3750 Handle<Object> values_iterator = |
| 3748 JSObject::GetProperty(array_prototype, factory()->iterator_symbol()) | 3751 JSObject::GetProperty(array_prototype, factory()->iterator_symbol()) |
| 3749 .ToHandleChecked(); | 3752 .ToHandleChecked(); |
| (...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5129 } | 5132 } |
| 5130 | 5133 |
| 5131 | 5134 |
| 5132 // Called when the top-level V8 mutex is destroyed. | 5135 // Called when the top-level V8 mutex is destroyed. |
| 5133 void Bootstrapper::FreeThreadResources() { | 5136 void Bootstrapper::FreeThreadResources() { |
| 5134 DCHECK(!IsActive()); | 5137 DCHECK(!IsActive()); |
| 5135 } | 5138 } |
| 5136 | 5139 |
| 5137 } // namespace internal | 5140 } // namespace internal |
| 5138 } // namespace v8 | 5141 } // namespace v8 |
| OLD | NEW |