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 2594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2605 Handle<JSFunction> values = | 2605 Handle<JSFunction> values = |
2606 SimpleInstallFunction(prototype, factory->values_string(), | 2606 SimpleInstallFunction(prototype, factory->values_string(), |
2607 Builtins::kTypedArrayPrototypeValues, 0, true); | 2607 Builtins::kTypedArrayPrototypeValues, 0, true); |
2608 values->shared()->set_builtin_function_id(kTypedArrayValues); | 2608 values->shared()->set_builtin_function_id(kTypedArrayValues); |
2609 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, | 2609 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, |
2610 DONT_ENUM); | 2610 DONT_ENUM); |
2611 | 2611 |
2612 // TODO(caitp): alphasort accessors/methods | 2612 // TODO(caitp): alphasort accessors/methods |
2613 SimpleInstallFunction(prototype, "copyWithin", | 2613 SimpleInstallFunction(prototype, "copyWithin", |
2614 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); | 2614 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); |
| 2615 SimpleInstallFunction(prototype, "fill", |
| 2616 Builtins::kTypedArrayPrototypeFill, 1, false); |
2615 SimpleInstallFunction(prototype, "includes", | 2617 SimpleInstallFunction(prototype, "includes", |
2616 Builtins::kTypedArrayPrototypeIncludes, 1, false); | 2618 Builtins::kTypedArrayPrototypeIncludes, 1, false); |
2617 } | 2619 } |
2618 | 2620 |
2619 { // -- T y p e d A r r a y s | 2621 { // -- T y p e d A r r a y s |
2620 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ | 2622 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ |
2621 { \ | 2623 { \ |
2622 Handle<JSFunction> fun; \ | 2624 Handle<JSFunction> fun; \ |
2623 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ | 2625 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ |
2624 InstallWithIntrinsicDefaultProto(isolate, fun, \ | 2626 InstallWithIntrinsicDefaultProto(isolate, fun, \ |
(...skipping 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5121 } | 5123 } |
5122 | 5124 |
5123 | 5125 |
5124 // Called when the top-level V8 mutex is destroyed. | 5126 // Called when the top-level V8 mutex is destroyed. |
5125 void Bootstrapper::FreeThreadResources() { | 5127 void Bootstrapper::FreeThreadResources() { |
5126 DCHECK(!IsActive()); | 5128 DCHECK(!IsActive()); |
5127 } | 5129 } |
5128 | 5130 |
5129 } // namespace internal | 5131 } // namespace internal |
5130 } // namespace v8 | 5132 } // namespace v8 |
OLD | NEW |