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

Side by Side Diff: src/bootstrapper.cc

Issue 2765293002: [Builtins] Provide a code-stub impl. of Array.prototype.map (Closed)
Patch Set: Comments. Created 3 years, 9 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.h » ('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 3696 matching lines...) Expand 10 before | Expand all | Expand 10 after
3707 isolate->builtins()->builtin(builtin_name)); 3707 isolate->builtins()->builtin(builtin_name));
3708 Handle<JSFunction>::cast(function)->shared()->set_code( 3708 Handle<JSFunction>::cast(function)->shared()->set_code(
3709 isolate->builtins()->builtin(builtin_name)); 3709 isolate->builtins()->builtin(builtin_name));
3710 } 3710 }
3711 3711
3712 void Genesis::InitializeGlobal_experimental_fast_array_builtins() { 3712 void Genesis::InitializeGlobal_experimental_fast_array_builtins() {
3713 if (!FLAG_experimental_fast_array_builtins) return; 3713 if (!FLAG_experimental_fast_array_builtins) return;
3714 3714
3715 // Insert experimental fast array builtins here. 3715 // Insert experimental fast array builtins here.
3716 InstallOneBuiltinFunction("Array", "filter", Builtins::kArrayFilter); 3716 InstallOneBuiltinFunction("Array", "filter", Builtins::kArrayFilter);
3717 InstallOneBuiltinFunction("Array", "map", Builtins::kArrayMap);
3717 } 3718 }
3718 3719
3719 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { 3720 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() {
3720 if (!FLAG_harmony_sharedarraybuffer) return; 3721 if (!FLAG_harmony_sharedarraybuffer) return;
3721 3722
3722 Handle<JSGlobalObject> global(native_context()->global_object()); 3723 Handle<JSGlobalObject> global(native_context()->global_object());
3723 Isolate* isolate = global->GetIsolate(); 3724 Isolate* isolate = global->GetIsolate();
3724 Factory* factory = isolate->factory(); 3725 Factory* factory = isolate->factory();
3725 3726
3726 Handle<JSFunction> shared_array_buffer_fun = 3727 Handle<JSFunction> shared_array_buffer_fun =
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
5095 } 5096 }
5096 5097
5097 5098
5098 // Called when the top-level V8 mutex is destroyed. 5099 // Called when the top-level V8 mutex is destroyed.
5099 void Bootstrapper::FreeThreadResources() { 5100 void Bootstrapper::FreeThreadResources() {
5100 DCHECK(!IsActive()); 5101 DCHECK(!IsActive());
5101 } 5102 }
5102 5103
5103 } // namespace internal 5104 } // namespace internal
5104 } // namespace v8 5105 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698