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

Side by Side Diff: src/bootstrapper.cc

Issue 2763473002: [typedarrays] Move %TypedArray%.prototype.slice to C++ (Closed)
Patch Set: rebase Created 3 years, 9 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') | src/builtins/builtins-typedarray.cc » ('J')
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 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after
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", 2634 SimpleInstallFunction(prototype, "reverse",
2635 Builtins::kTypedArrayPrototypeReverse, 0, false); 2635 Builtins::kTypedArrayPrototypeReverse, 0, false);
2636 SimpleInstallFunction(prototype, "slice",
2637 Builtins::kTypedArrayPrototypeSlice, 2, false);
2636 } 2638 }
2637 2639
2638 { // -- T y p e d A r r a y s 2640 { // -- T y p e d A r r a y s
2639 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2641 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
2640 { \ 2642 { \
2641 Handle<JSFunction> fun; \ 2643 Handle<JSFunction> fun; \
2642 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ 2644 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \
2643 InstallWithIntrinsicDefaultProto(isolate, fun, \ 2645 InstallWithIntrinsicDefaultProto(isolate, fun, \
2644 Context::TYPE##_ARRAY_FUN_INDEX); \ 2646 Context::TYPE##_ARRAY_FUN_INDEX); \
2645 } 2647 }
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
5106 } 5108 }
5107 5109
5108 5110
5109 // Called when the top-level V8 mutex is destroyed. 5111 // Called when the top-level V8 mutex is destroyed.
5110 void Bootstrapper::FreeThreadResources() { 5112 void Bootstrapper::FreeThreadResources() {
5111 DCHECK(!IsActive()); 5113 DCHECK(!IsActive());
5112 } 5114 }
5113 5115
5114 } // namespace internal 5116 } // namespace internal
5115 } // namespace v8 5117 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/builtins/builtins-typedarray.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698