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

Side by Side Diff: src/bootstrapper.cc

Issue 2693753002: Revert of [typedarrays] move %TypedArray%.prototype.copyWithin to C++ (Closed)
Patch Set: Fix merge conflict 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);
2490 } 2486 }
2491 2487
2492 { // -- T y p e d A r r a y s 2488 { // -- T y p e d A r r a y s
2493 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2489 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
2494 { \ 2490 { \
2495 Handle<JSFunction> fun; \ 2491 Handle<JSFunction> fun; \
2496 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ 2492 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \
2497 InstallWithIntrinsicDefaultProto(isolate, fun, \ 2493 InstallWithIntrinsicDefaultProto(isolate, fun, \
2498 Context::TYPE##_ARRAY_FUN_INDEX); \ 2494 Context::TYPE##_ARRAY_FUN_INDEX); \
2499 } 2495 }
(...skipping 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after
4877 } 4873 }
4878 4874
4879 4875
4880 // Called when the top-level V8 mutex is destroyed. 4876 // Called when the top-level V8 mutex is destroyed.
4881 void Bootstrapper::FreeThreadResources() { 4877 void Bootstrapper::FreeThreadResources() {
4882 DCHECK(!IsActive()); 4878 DCHECK(!IsActive());
4883 } 4879 }
4884 4880
4885 } // namespace internal 4881 } // namespace internal
4886 } // namespace v8 4882 } // 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