Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/bootstrapper.cc

Issue 2761453002: [typedarrays] Implement %TypedArray%.prototype.reverse in C++ (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 SimpleInstallFunction(prototype, "copyWithin", 2624 SimpleInstallFunction(prototype, "copyWithin",
2625 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); 2625 Builtins::kTypedArrayPrototypeCopyWithin, 2, false);
2626 SimpleInstallFunction(prototype, "fill", 2626 SimpleInstallFunction(prototype, "fill",
2627 Builtins::kTypedArrayPrototypeFill, 1, false); 2627 Builtins::kTypedArrayPrototypeFill, 1, false);
2628 SimpleInstallFunction(prototype, "includes", 2628 SimpleInstallFunction(prototype, "includes",
2629 Builtins::kTypedArrayPrototypeIncludes, 1, false); 2629 Builtins::kTypedArrayPrototypeIncludes, 1, false);
2630 SimpleInstallFunction(prototype, "indexOf", 2630 SimpleInstallFunction(prototype, "indexOf",
2631 Builtins::kTypedArrayPrototypeIndexOf, 1, false); 2631 Builtins::kTypedArrayPrototypeIndexOf, 1, false);
2632 SimpleInstallFunction(prototype, "lastIndexOf", 2632 SimpleInstallFunction(prototype, "lastIndexOf",
2633 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false); 2633 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false);
2634 SimpleInstallFunction(prototype, "reverse",
2635 Builtins::kTypedArrayPrototypeReverse, 0, false);
2634 } 2636 }
2635 2637
2636 { // -- T y p e d A r r a y s 2638 { // -- T y p e d A r r a y s
2637 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2639 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
2638 { \ 2640 { \
2639 Handle<JSFunction> fun; \ 2641 Handle<JSFunction> fun; \
2640 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ 2642 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \
2641 InstallWithIntrinsicDefaultProto(isolate, fun, \ 2643 InstallWithIntrinsicDefaultProto(isolate, fun, \
2642 Context::TYPE##_ARRAY_FUN_INDEX); \ 2644 Context::TYPE##_ARRAY_FUN_INDEX); \
2643 } 2645 }
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
5104 } 5106 }
5105 5107
5106 5108
5107 // Called when the top-level V8 mutex is destroyed. 5109 // Called when the top-level V8 mutex is destroyed.
5108 void Bootstrapper::FreeThreadResources() { 5110 void Bootstrapper::FreeThreadResources() {
5109 DCHECK(!IsActive()); 5111 DCHECK(!IsActive());
5110 } 5112 }
5111 5113
5112 } // namespace internal 5114 } // namespace internal
5113 } // namespace v8 5115 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698