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

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: 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
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "GetIterator", 157 "GetIterator",
158 "GetMethod", 158 "GetMethod",
159 "InnerArrayEvery", 159 "InnerArrayEvery",
160 "InnerArrayFilter", 160 "InnerArrayFilter",
161 "InnerArrayForEach", 161 "InnerArrayForEach",
162 "InnerArrayIndexOf", 162 "InnerArrayIndexOf",
163 "InnerArrayJoin",
163 "InnerArrayLastIndexOf", 164 "InnerArrayLastIndexOf",
164 "InnerArrayMap", 165 "InnerArrayMap",
165 "InnerArrayReverse", 166 "InnerArrayReverse",
166 "InnerArraySome", 167 "InnerArraySome",
167 "InnerArraySort", 168 "InnerArraySort",
169 "InnerArrayToLocaleString",
168 "IsNaN", 170 "IsNaN",
169 "MathMax", 171 "MathMax",
170 "MathMin", 172 "MathMin",
171 "ObjectIsFrozen", 173 "ObjectIsFrozen",
172 "OwnPropertyKeys", 174 "OwnPropertyKeys",
175 "ObjectToString",
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);
178 for (var key of expose_to_experimental) { 181 for (var key of expose_to_experimental) {
179 experimental_exports[key] = container[key]; 182 experimental_exports[key] = container[key];
180 } 183 }
181 %ToFastProperties(experimental_exports); 184 %ToFastProperties(experimental_exports);
182 container = UNDEFINED; 185 container = UNDEFINED;
(...skipping 34 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

Powered by Google App Engine
This is Rietveld 408576698