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

Side by Side Diff: src/bootstrapper.cc

Issue 2697593002: Reland [typedarrays] move %TypedArray%.prototype.copyWithin to C++ (Closed)
Patch Set: update comment Created 3 years, 10 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 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 SimpleInstallFunction(prototype, factory->keys_string(), 2476 SimpleInstallFunction(prototype, factory->keys_string(),
2477 Builtins::kTypedArrayPrototypeKeys, 0, true); 2477 Builtins::kTypedArrayPrototypeKeys, 0, true);
2478 keys->shared()->set_builtin_function_id(kTypedArrayKeys); 2478 keys->shared()->set_builtin_function_id(kTypedArrayKeys);
2479 2479
2480 Handle<JSFunction> values = 2480 Handle<JSFunction> values =
2481 SimpleInstallFunction(prototype, factory->values_string(), 2481 SimpleInstallFunction(prototype, factory->values_string(),
2482 Builtins::kTypedArrayPrototypeValues, 0, true); 2482 Builtins::kTypedArrayPrototypeValues, 0, true);
2483 values->shared()->set_builtin_function_id(kTypedArrayValues); 2483 values->shared()->set_builtin_function_id(kTypedArrayValues);
2484 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, 2484 JSObject::AddProperty(prototype, factory->iterator_symbol(), values,
2485 DONT_ENUM); 2485 DONT_ENUM);
2486
2487 // TODO(caitp): alphasort accessors/methods
2488 SimpleInstallFunction(prototype, "copyWithin",
2489 Builtins::kTypedArrayPrototypeCopyWithin, 2, false);
2486 } 2490 }
2487 2491
2488 { // -- T y p e d A r r a y s 2492 { // -- T y p e d A r r a y s
2489 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2493 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
2490 { \ 2494 { \
2491 Handle<JSFunction> fun; \ 2495 Handle<JSFunction> fun; \
2492 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ 2496 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \
2493 InstallWithIntrinsicDefaultProto(isolate, fun, \ 2497 InstallWithIntrinsicDefaultProto(isolate, fun, \
2494 Context::TYPE##_ARRAY_FUN_INDEX); \ 2498 Context::TYPE##_ARRAY_FUN_INDEX); \
2495 } 2499 }
(...skipping 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after
4839 } 4843 }
4840 4844
4841 4845
4842 // Called when the top-level V8 mutex is destroyed. 4846 // Called when the top-level V8 mutex is destroyed.
4843 void Bootstrapper::FreeThreadResources() { 4847 void Bootstrapper::FreeThreadResources() {
4844 DCHECK(!IsActive()); 4848 DCHECK(!IsActive());
4845 } 4849 }
4846 4850
4847 } // namespace internal 4851 } // namespace internal
4848 } // namespace v8 4852 } // 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