| 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 2601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2612 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, | 2612 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, |
| 2613 DONT_ENUM); | 2613 DONT_ENUM); |
| 2614 | 2614 |
| 2615 // TODO(caitp): alphasort accessors/methods | 2615 // TODO(caitp): alphasort accessors/methods |
| 2616 SimpleInstallFunction(prototype, "copyWithin", | 2616 SimpleInstallFunction(prototype, "copyWithin", |
| 2617 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); | 2617 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); |
| 2618 SimpleInstallFunction(prototype, "includes", | 2618 SimpleInstallFunction(prototype, "includes", |
| 2619 Builtins::kTypedArrayPrototypeIncludes, 1, false); | 2619 Builtins::kTypedArrayPrototypeIncludes, 1, false); |
| 2620 SimpleInstallFunction(prototype, "indexOf", | 2620 SimpleInstallFunction(prototype, "indexOf", |
| 2621 Builtins::kTypedArrayPrototypeIndexOf, 1, false); | 2621 Builtins::kTypedArrayPrototypeIndexOf, 1, false); |
| 2622 SimpleInstallFunction(prototype, "lastIndexOf", |
| 2623 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false); |
| 2622 } | 2624 } |
| 2623 | 2625 |
| 2624 { // -- T y p e d A r r a y s | 2626 { // -- T y p e d A r r a y s |
| 2625 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ | 2627 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ |
| 2626 { \ | 2628 { \ |
| 2627 Handle<JSFunction> fun; \ | 2629 Handle<JSFunction> fun; \ |
| 2628 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ | 2630 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ |
| 2629 InstallWithIntrinsicDefaultProto(isolate, fun, \ | 2631 InstallWithIntrinsicDefaultProto(isolate, fun, \ |
| 2630 Context::TYPE##_ARRAY_FUN_INDEX); \ | 2632 Context::TYPE##_ARRAY_FUN_INDEX); \ |
| 2631 } | 2633 } |
| (...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5131 } | 5133 } |
| 5132 | 5134 |
| 5133 | 5135 |
| 5134 // Called when the top-level V8 mutex is destroyed. | 5136 // Called when the top-level V8 mutex is destroyed. |
| 5135 void Bootstrapper::FreeThreadResources() { | 5137 void Bootstrapper::FreeThreadResources() { |
| 5136 DCHECK(!IsActive()); | 5138 DCHECK(!IsActive()); |
| 5137 } | 5139 } |
| 5138 | 5140 |
| 5139 } // namespace internal | 5141 } // namespace internal |
| 5140 } // namespace v8 | 5142 } // namespace v8 |
| OLD | NEW |