| 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 3693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3704 isolate->builtins()->builtin(builtin_name)); | 3704 isolate->builtins()->builtin(builtin_name)); |
| 3705 Handle<JSFunction>::cast(function)->shared()->set_code( | 3705 Handle<JSFunction>::cast(function)->shared()->set_code( |
| 3706 isolate->builtins()->builtin(builtin_name)); | 3706 isolate->builtins()->builtin(builtin_name)); |
| 3707 } | 3707 } |
| 3708 | 3708 |
| 3709 void Genesis::InitializeGlobal_experimental_fast_array_builtins() { | 3709 void Genesis::InitializeGlobal_experimental_fast_array_builtins() { |
| 3710 if (!FLAG_experimental_fast_array_builtins) return; | 3710 if (!FLAG_experimental_fast_array_builtins) return; |
| 3711 | 3711 |
| 3712 // Insert experimental fast array builtins here. | 3712 // Insert experimental fast array builtins here. |
| 3713 InstallOneBuiltinFunction("Array", "filter", Builtins::kArrayFilter); | 3713 InstallOneBuiltinFunction("Array", "filter", Builtins::kArrayFilter); |
| 3714 InstallOneBuiltinFunction("Array", "map", Builtins::kArrayMap); |
| 3714 } | 3715 } |
| 3715 | 3716 |
| 3716 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { | 3717 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |
| 3717 if (!FLAG_harmony_sharedarraybuffer) return; | 3718 if (!FLAG_harmony_sharedarraybuffer) return; |
| 3718 | 3719 |
| 3719 Handle<JSGlobalObject> global(native_context()->global_object()); | 3720 Handle<JSGlobalObject> global(native_context()->global_object()); |
| 3720 Isolate* isolate = global->GetIsolate(); | 3721 Isolate* isolate = global->GetIsolate(); |
| 3721 Factory* factory = isolate->factory(); | 3722 Factory* factory = isolate->factory(); |
| 3722 | 3723 |
| 3723 Handle<JSFunction> shared_array_buffer_fun = | 3724 Handle<JSFunction> shared_array_buffer_fun = |
| (...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5094 } | 5095 } |
| 5095 | 5096 |
| 5096 | 5097 |
| 5097 // Called when the top-level V8 mutex is destroyed. | 5098 // Called when the top-level V8 mutex is destroyed. |
| 5098 void Bootstrapper::FreeThreadResources() { | 5099 void Bootstrapper::FreeThreadResources() { |
| 5099 DCHECK(!IsActive()); | 5100 DCHECK(!IsActive()); |
| 5100 } | 5101 } |
| 5101 | 5102 |
| 5102 } // namespace internal | 5103 } // namespace internal |
| 5103 } // namespace v8 | 5104 } // namespace v8 |
| OLD | NEW |