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

Side by Side Diff: src/bootstrapper.cc

Issue 2735563002: Migrate %TypedArray%.prototype.fill to C++ (Closed)
Patch Set: minor change 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 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 Handle<JSFunction> values = 2601 Handle<JSFunction> values =
2602 SimpleInstallFunction(prototype, factory->values_string(), 2602 SimpleInstallFunction(prototype, factory->values_string(),
2603 Builtins::kTypedArrayPrototypeValues, 0, true); 2603 Builtins::kTypedArrayPrototypeValues, 0, true);
2604 values->shared()->set_builtin_function_id(kTypedArrayValues); 2604 values->shared()->set_builtin_function_id(kTypedArrayValues);
2605 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, 2605 JSObject::AddProperty(prototype, factory->iterator_symbol(), values,
2606 DONT_ENUM); 2606 DONT_ENUM);
2607 2607
2608 // TODO(caitp): alphasort accessors/methods 2608 // TODO(caitp): alphasort accessors/methods
2609 SimpleInstallFunction(prototype, "copyWithin", 2609 SimpleInstallFunction(prototype, "copyWithin",
2610 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); 2610 Builtins::kTypedArrayPrototypeCopyWithin, 2, false);
2611 SimpleInstallFunction(prototype, "fill",
2612 Builtins::kTypedArrayPrototypeFill, 1, false);
2611 } 2613 }
2612 2614
2613 { // -- T y p e d A r r a y s 2615 { // -- T y p e d A r r a y s
2614 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2616 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
2615 { \ 2617 { \
2616 Handle<JSFunction> fun; \ 2618 Handle<JSFunction> fun; \
2617 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \ 2619 InstallTypedArray(#Type "Array", TYPE##_ELEMENTS, &fun); \
2618 InstallWithIntrinsicDefaultProto(isolate, fun, \ 2620 InstallWithIntrinsicDefaultProto(isolate, fun, \
2619 Context::TYPE##_ARRAY_FUN_INDEX); \ 2621 Context::TYPE##_ARRAY_FUN_INDEX); \
2620 } 2622 }
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after
5103 } 5105 }
5104 5106
5105 5107
5106 // Called when the top-level V8 mutex is destroyed. 5108 // Called when the top-level V8 mutex is destroyed.
5107 void Bootstrapper::FreeThreadResources() { 5109 void Bootstrapper::FreeThreadResources() {
5108 DCHECK(!IsActive()); 5110 DCHECK(!IsActive());
5109 } 5111 }
5110 5112
5111 } // namespace internal 5113 } // namespace internal
5112 } // namespace v8 5114 } // 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