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

Side by Side Diff: src/bootstrapper.cc

Issue 2763473002: [typedarrays] Move %TypedArray%.prototype.slice to 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-definitions.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 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2743 SimpleInstallFunction(prototype, "fill", 2743 SimpleInstallFunction(prototype, "fill",
2744 Builtins::kTypedArrayPrototypeFill, 1, false); 2744 Builtins::kTypedArrayPrototypeFill, 1, false);
2745 SimpleInstallFunction(prototype, "includes", 2745 SimpleInstallFunction(prototype, "includes",
2746 Builtins::kTypedArrayPrototypeIncludes, 1, false); 2746 Builtins::kTypedArrayPrototypeIncludes, 1, false);
2747 SimpleInstallFunction(prototype, "indexOf", 2747 SimpleInstallFunction(prototype, "indexOf",
2748 Builtins::kTypedArrayPrototypeIndexOf, 1, false); 2748 Builtins::kTypedArrayPrototypeIndexOf, 1, false);
2749 SimpleInstallFunction(prototype, "lastIndexOf", 2749 SimpleInstallFunction(prototype, "lastIndexOf",
2750 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false); 2750 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false);
2751 SimpleInstallFunction(prototype, "reverse", 2751 SimpleInstallFunction(prototype, "reverse",
2752 Builtins::kTypedArrayPrototypeReverse, 0, false); 2752 Builtins::kTypedArrayPrototypeReverse, 0, false);
2753 SimpleInstallFunction(prototype, "slice",
2754 Builtins::kTypedArrayPrototypeSlice, 2, false);
2753 } 2755 }
2754 2756
2755 { // -- T y p e d A r r a y s 2757 { // -- T y p e d A r r a y s
2756 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2758 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
2757 { \ 2759 { \
2758 Handle<JSFunction> fun; \ 2760 Handle<JSFunction> fun; \
2759 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ 2761 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \
2760 InstallWithIntrinsicDefaultProto(isolate, fun, \ 2762 InstallWithIntrinsicDefaultProto(isolate, fun, \
2761 Context::TYPE##_ARRAY_FUN_INDEX); \ 2763 Context::TYPE##_ARRAY_FUN_INDEX); \
2762 } 2764 }
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
5274 } 5276 }
5275 5277
5276 5278
5277 // Called when the top-level V8 mutex is destroyed. 5279 // Called when the top-level V8 mutex is destroyed.
5278 void Bootstrapper::FreeThreadResources() { 5280 void Bootstrapper::FreeThreadResources() {
5279 DCHECK(!IsActive()); 5281 DCHECK(!IsActive());
5280 } 5282 }
5281 5283
5282 } // namespace internal 5284 } // namespace internal
5283 } // namespace v8 5285 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698