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

Side by Side Diff: src/prologue.js

Issue 1166623004: Implement %TypedArray%.prototype.{toString,toLocaleString,join} (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix toString Created 5 years, 6 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 | « src/harmony-typedarray.js ('k') | test/mjsunit/harmony/typedarray-tostring.js » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 function PostNatives(utils) { 148 function PostNatives(utils) {
149 %CheckIsBootstrapping(); 149 %CheckIsBootstrapping();
150 150
151 var container = {}; 151 var container = {};
152 for ( ; !IS_UNDEFINED(exports); exports = exports.next) exports(container); 152 for ( ; !IS_UNDEFINED(exports); exports = exports.next) exports(container);
153 for ( ; !IS_UNDEFINED(imports); imports = imports.next) imports(container); 153 for ( ; !IS_UNDEFINED(imports); imports = imports.next) imports(container);
154 154
155 // Whitelist of exports from normal natives to experimental natives. 155 // Whitelist of exports from normal natives to experimental natives.
156 var expose_to_experimental = [ 156 var expose_to_experimental = [
157 "ArrayToString",
157 "GetIterator", 158 "GetIterator",
158 "GetMethod", 159 "GetMethod",
159 "InnerArrayEvery", 160 "InnerArrayEvery",
160 "InnerArrayFilter", 161 "InnerArrayFilter",
161 "InnerArrayForEach", 162 "InnerArrayForEach",
162 "InnerArrayIndexOf", 163 "InnerArrayIndexOf",
164 "InnerArrayJoin",
163 "InnerArrayLastIndexOf", 165 "InnerArrayLastIndexOf",
164 "InnerArrayMap", 166 "InnerArrayMap",
165 "InnerArrayReverse", 167 "InnerArrayReverse",
166 "InnerArraySome", 168 "InnerArraySome",
167 "InnerArraySort", 169 "InnerArraySort",
170 "InnerArrayToLocaleString",
168 "IsNaN", 171 "IsNaN",
169 "MathMax", 172 "MathMax",
170 "MathMin", 173 "MathMin",
171 "ObjectIsFrozen", 174 "ObjectIsFrozen",
172 "OwnPropertyKeys", 175 "OwnPropertyKeys",
173 "ToNameArray", 176 "ToNameArray",
174 ]; 177 ];
175 experimental_exports = {}; 178 experimental_exports = {};
176 %OptimizeObjectForAddingMultipleProperties( 179 %OptimizeObjectForAddingMultipleProperties(
177 experimental_exports, expose_to_experimental.length); 180 experimental_exports, expose_to_experimental.length);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 "InstallConstants", InstallConstants, 220 "InstallConstants", InstallConstants,
218 "InstallFunctions", InstallFunctions, 221 "InstallFunctions", InstallFunctions,
219 "InstallGetter", InstallGetter, 222 "InstallGetter", InstallGetter,
220 "InstallGetterSetter", InstallGetterSetter, 223 "InstallGetterSetter", InstallGetterSetter,
221 "SetUpLockedPrototype", SetUpLockedPrototype, 224 "SetUpLockedPrototype", SetUpLockedPrototype,
222 "PostNatives", PostNatives, 225 "PostNatives", PostNatives,
223 "PostExperimentals", PostExperimentals, 226 "PostExperimentals", PostExperimentals,
224 ]); 227 ]);
225 228
226 }) 229 })
OLDNEW
« no previous file with comments | « src/harmony-typedarray.js ('k') | test/mjsunit/harmony/typedarray-tostring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698