Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: src/bootstrapper.cc

Issue 2814683002: [builtins] Implement %TypedArray%.prototype.map in the CSA (Closed)
Patch Set: added todo Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins/builtins-array-gen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-array-gen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698