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 3827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3838 native_context()->typed_array_prototype(), isolate()); | 3838 native_context()->typed_array_prototype(), isolate()); |
3839 // Insert experimental fast TypedArray builtins here. | 3839 // Insert experimental fast TypedArray builtins here. |
3840 InstallOneBuiltinFunction(typed_array_prototype, "every", | 3840 InstallOneBuiltinFunction(typed_array_prototype, "every", |
3841 Builtins::kTypedArrayPrototypeEvery); | 3841 Builtins::kTypedArrayPrototypeEvery); |
3842 InstallOneBuiltinFunction(typed_array_prototype, "some", | 3842 InstallOneBuiltinFunction(typed_array_prototype, "some", |
3843 Builtins::kTypedArrayPrototypeSome); | 3843 Builtins::kTypedArrayPrototypeSome); |
3844 InstallOneBuiltinFunction(typed_array_prototype, "reduce", | 3844 InstallOneBuiltinFunction(typed_array_prototype, "reduce", |
3845 Builtins::kTypedArrayPrototypeReduce); | 3845 Builtins::kTypedArrayPrototypeReduce); |
3846 InstallOneBuiltinFunction(typed_array_prototype, "reduceRight", | 3846 InstallOneBuiltinFunction(typed_array_prototype, "reduceRight", |
3847 Builtins::kTypedArrayPrototypeReduceRight); | 3847 Builtins::kTypedArrayPrototypeReduceRight); |
| 3848 InstallOneBuiltinFunction(typed_array_prototype, "map", |
| 3849 Builtins::kTypedArrayPrototypeMap); |
3848 } | 3850 } |
3849 } | 3851 } |
3850 | 3852 |
3851 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { | 3853 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |
3852 if (!FLAG_harmony_sharedarraybuffer) return; | 3854 if (!FLAG_harmony_sharedarraybuffer) return; |
3853 | 3855 |
3854 Handle<JSGlobalObject> global(native_context()->global_object()); | 3856 Handle<JSGlobalObject> global(native_context()->global_object()); |
3855 Isolate* isolate = global->GetIsolate(); | 3857 Isolate* isolate = global->GetIsolate(); |
3856 Factory* factory = isolate->factory(); | 3858 Factory* factory = isolate->factory(); |
3857 | 3859 |
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5251 } | 5253 } |
5252 | 5254 |
5253 | 5255 |
5254 // Called when the top-level V8 mutex is destroyed. | 5256 // Called when the top-level V8 mutex is destroyed. |
5255 void Bootstrapper::FreeThreadResources() { | 5257 void Bootstrapper::FreeThreadResources() { |
5256 DCHECK(!IsActive()); | 5258 DCHECK(!IsActive()); |
5257 } | 5259 } |
5258 | 5260 |
5259 } // namespace internal | 5261 } // namespace internal |
5260 } // namespace v8 | 5262 } // namespace v8 |
OLD | NEW |