| 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 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2597 | 2597 |
| 2598 // TODO(caitp): alphasort accessors/methods | 2598 // TODO(caitp): alphasort accessors/methods |
| 2599 SimpleInstallFunction(prototype, "copyWithin", | 2599 SimpleInstallFunction(prototype, "copyWithin", |
| 2600 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); | 2600 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); |
| 2601 SimpleInstallFunction(prototype, "includes", | 2601 SimpleInstallFunction(prototype, "includes", |
| 2602 Builtins::kTypedArrayPrototypeIncludes, 1, false); | 2602 Builtins::kTypedArrayPrototypeIncludes, 1, false); |
| 2603 SimpleInstallFunction(prototype, "indexOf", | 2603 SimpleInstallFunction(prototype, "indexOf", |
| 2604 Builtins::kTypedArrayPrototypeIndexOf, 1, false); | 2604 Builtins::kTypedArrayPrototypeIndexOf, 1, false); |
| 2605 SimpleInstallFunction(prototype, "lastIndexOf", | 2605 SimpleInstallFunction(prototype, "lastIndexOf", |
| 2606 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false); | 2606 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false); |
| 2607 SimpleInstallFunction(prototype, "slice", |
| 2608 Builtins::kTypedArrayPrototypeSlice, 2, false); |
| 2607 } | 2609 } |
| 2608 | 2610 |
| 2609 { // -- T y p e d A r r a y s | 2611 { // -- T y p e d A r r a y s |
| 2610 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ | 2612 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ |
| 2611 { \ | 2613 { \ |
| 2612 Handle<JSFunction> fun; \ | 2614 Handle<JSFunction> fun; \ |
| 2613 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ | 2615 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ |
| 2614 InstallWithIntrinsicDefaultProto(isolate, fun, \ | 2616 InstallWithIntrinsicDefaultProto(isolate, fun, \ |
| 2615 Context::TYPE##_ARRAY_FUN_INDEX); \ | 2617 Context::TYPE##_ARRAY_FUN_INDEX); \ |
| 2616 } | 2618 } |
| (...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5061 } | 5063 } |
| 5062 | 5064 |
| 5063 | 5065 |
| 5064 // Called when the top-level V8 mutex is destroyed. | 5066 // Called when the top-level V8 mutex is destroyed. |
| 5065 void Bootstrapper::FreeThreadResources() { | 5067 void Bootstrapper::FreeThreadResources() { |
| 5066 DCHECK(!IsActive()); | 5068 DCHECK(!IsActive()); |
| 5067 } | 5069 } |
| 5068 | 5070 |
| 5069 } // namespace internal | 5071 } // namespace internal |
| 5070 } // namespace v8 | 5072 } // namespace v8 |
| OLD | NEW |