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

Side by Side Diff: src/bootstrapper.cc

Issue 2735563002: Migrate %TypedArray%.prototype.fill to C++ (Closed)
Patch Set: Merge branch 'master' into fill 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/elements.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 2580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2591 Handle<JSFunction> values = 2591 Handle<JSFunction> values =
2592 SimpleInstallFunction(prototype, factory->values_string(), 2592 SimpleInstallFunction(prototype, factory->values_string(),
2593 Builtins::kTypedArrayPrototypeValues, 0, true); 2593 Builtins::kTypedArrayPrototypeValues, 0, true);
2594 values->shared()->set_builtin_function_id(kTypedArrayValues); 2594 values->shared()->set_builtin_function_id(kTypedArrayValues);
2595 JSObject::AddProperty(prototype, factory->iterator_symbol(), values, 2595 JSObject::AddProperty(prototype, factory->iterator_symbol(), values,
2596 DONT_ENUM); 2596 DONT_ENUM);
2597 2597
2598 // TODO(caitp): alphasort accessors/methods 2598 // TODO(caitp): alphasort accessors/methods
2599 SimpleInstallFunction(prototype, "copyWithin", 2599 SimpleInstallFunction(prototype, "copyWithin",
2600 Builtins::kTypedArrayPrototypeCopyWithin, 2, false); 2600 Builtins::kTypedArrayPrototypeCopyWithin, 2, false);
2601 SimpleInstallFunction(prototype, "fill",
2602 Builtins::kTypedArrayPrototypeFill, 1, false);
2601 SimpleInstallFunction(prototype, "includes", 2603 SimpleInstallFunction(prototype, "includes",
2602 Builtins::kTypedArrayPrototypeIncludes, 1, false); 2604 Builtins::kTypedArrayPrototypeIncludes, 1, false);
2603 SimpleInstallFunction(prototype, "indexOf", 2605 SimpleInstallFunction(prototype, "indexOf",
2604 Builtins::kTypedArrayPrototypeIndexOf, 1, false); 2606 Builtins::kTypedArrayPrototypeIndexOf, 1, false);
2605 SimpleInstallFunction(prototype, "lastIndexOf", 2607 SimpleInstallFunction(prototype, "lastIndexOf",
2606 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false); 2608 Builtins::kTypedArrayPrototypeLastIndexOf, 1, false);
2607 } 2609 }
2608 2610
2609 { // -- T y p e d A r r a y s 2611 { // -- T y p e d A r r a y s
2610 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \ 2612 #define INSTALL_TYPED_ARRAY(Type, type, TYPE, ctype, size) \
(...skipping 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after
5061 } 5063 }
5062 5064
5063 5065
5064 // Called when the top-level V8 mutex is destroyed. 5066 // Called when the top-level V8 mutex is destroyed.
5065 void Bootstrapper::FreeThreadResources() { 5067 void Bootstrapper::FreeThreadResources() {
5066 DCHECK(!IsActive()); 5068 DCHECK(!IsActive());
5067 } 5069 }
5068 5070
5069 } // namespace internal 5071 } // namespace internal
5070 } // namespace v8 5072 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/elements.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698