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

Side by Side Diff: src/js/prologue.js

Issue 2405253006: [builtins] implement Array.prototype[@@iterator] in TFJ builtins (Closed)
Patch Set: V1 Created 4 years, 2 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, extrasUtils) { 5 (function(global, utils, extrasUtils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 "species_symbol", 214 "species_symbol",
215 "match_symbol", 215 "match_symbol",
216 "replace_symbol", 216 "replace_symbol",
217 "search_symbol", 217 "search_symbol",
218 "split_symbol", 218 "split_symbol",
219 ]; 219 ];
220 220
221 var filtered_exports = {}; 221 var filtered_exports = {};
222 %OptimizeObjectForAddingMultipleProperties( 222 %OptimizeObjectForAddingMultipleProperties(
223 filtered_exports, expose_list.length); 223 filtered_exports, expose_list.length);
224 for (var key of expose_list) { 224 for (var i = 0; i < expose_list.length; ++i) {
225 var key = expose_list[i];
225 filtered_exports[key] = exports_container[key]; 226 filtered_exports[key] = exports_container[key];
226 } 227 }
227 %ToFastProperties(filtered_exports); 228 %ToFastProperties(filtered_exports);
228 exports_container = filtered_exports; 229 exports_container = filtered_exports;
229 230
230 utils.PostNatives = UNDEFINED; 231 utils.PostNatives = UNDEFINED;
231 utils.ImportFromExperimental = UNDEFINED; 232 utils.ImportFromExperimental = UNDEFINED;
232 } 233 }
233 234
234 235
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 336
336 extrasUtils.uncurryThis = function uncurryThis(func) { 337 extrasUtils.uncurryThis = function uncurryThis(func) {
337 return function(thisArg, ...args) { 338 return function(thisArg, ...args) {
338 return %reflect_apply(func, thisArg, args); 339 return %reflect_apply(func, thisArg, args);
339 }; 340 };
340 }; 341 };
341 342
342 %ToFastProperties(extrasUtils); 343 %ToFastProperties(extrasUtils);
343 344
344 }) 345 })
OLDNEW
« src/bootstrapper.cc ('K') | « src/js/array-iterator.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698