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 3696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |