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 3881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3892 native_context()->typed_array_prototype(), isolate()); | 3892 native_context()->typed_array_prototype(), isolate()); |
3893 // Insert experimental fast TypedArray builtins here. | 3893 // Insert experimental fast TypedArray builtins here. |
3894 InstallOneBuiltinFunction(typed_array_prototype, "every", | 3894 InstallOneBuiltinFunction(typed_array_prototype, "every", |
3895 Builtins::kTypedArrayPrototypeEvery); | 3895 Builtins::kTypedArrayPrototypeEvery); |
3896 InstallOneBuiltinFunction(typed_array_prototype, "some", | 3896 InstallOneBuiltinFunction(typed_array_prototype, "some", |
3897 Builtins::kTypedArrayPrototypeSome); | 3897 Builtins::kTypedArrayPrototypeSome); |
3898 InstallOneBuiltinFunction(typed_array_prototype, "reduce", | 3898 InstallOneBuiltinFunction(typed_array_prototype, "reduce", |
3899 Builtins::kTypedArrayPrototypeReduce); | 3899 Builtins::kTypedArrayPrototypeReduce); |
3900 InstallOneBuiltinFunction(typed_array_prototype, "reduceRight", | 3900 InstallOneBuiltinFunction(typed_array_prototype, "reduceRight", |
3901 Builtins::kTypedArrayPrototypeReduceRight); | 3901 Builtins::kTypedArrayPrototypeReduceRight); |
| 3902 InstallOneBuiltinFunction(typed_array_prototype, "map", |
| 3903 Builtins::kTypedArrayPrototypeMap); |
3902 } | 3904 } |
3903 } | 3905 } |
3904 | 3906 |
3905 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { | 3907 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |
3906 if (!FLAG_harmony_sharedarraybuffer) return; | 3908 if (!FLAG_harmony_sharedarraybuffer) return; |
3907 | 3909 |
3908 Handle<JSGlobalObject> global(native_context()->global_object()); | 3910 Handle<JSGlobalObject> global(native_context()->global_object()); |
3909 Isolate* isolate = global->GetIsolate(); | 3911 Isolate* isolate = global->GetIsolate(); |
3910 Factory* factory = isolate->factory(); | 3912 Factory* factory = isolate->factory(); |
3911 | 3913 |
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5283 } | 5285 } |
5284 | 5286 |
5285 | 5287 |
5286 // Called when the top-level V8 mutex is destroyed. | 5288 // Called when the top-level V8 mutex is destroyed. |
5287 void Bootstrapper::FreeThreadResources() { | 5289 void Bootstrapper::FreeThreadResources() { |
5288 DCHECK(!IsActive()); | 5290 DCHECK(!IsActive()); |
5289 } | 5291 } |
5290 | 5292 |
5291 } // namespace internal | 5293 } // namespace internal |
5292 } // namespace v8 | 5294 } // namespace v8 |
OLD | NEW |