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

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

Issue 1558543002: Add a --harmony-species flag, defining @@species on constructors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/js/harmony-species.js ('k') | test/mjsunit/harmony/species.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, extrasUtils) { 5 (function(global, utils, extrasUtils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // From runtime: 212 // From runtime:
213 "is_concat_spreadable_symbol", 213 "is_concat_spreadable_symbol",
214 "iterator_symbol", 214 "iterator_symbol",
215 "promise_status_symbol", 215 "promise_status_symbol",
216 "promise_value_symbol", 216 "promise_value_symbol",
217 "reflect_apply", 217 "reflect_apply",
218 "reflect_construct", 218 "reflect_construct",
219 "regexp_flags_symbol", 219 "regexp_flags_symbol",
220 "to_string_tag_symbol", 220 "to_string_tag_symbol",
221 "object_to_string", 221 "object_to_string",
222 "species_symbol",
222 ]; 223 ];
223 224
224 var filtered_exports = {}; 225 var filtered_exports = {};
225 %OptimizeObjectForAddingMultipleProperties( 226 %OptimizeObjectForAddingMultipleProperties(
226 filtered_exports, expose_list.length); 227 filtered_exports, expose_list.length);
227 for (var key of expose_list) { 228 for (var key of expose_list) {
228 filtered_exports[key] = exports_container[key]; 229 filtered_exports[key] = exports_container[key];
229 } 230 }
230 %ToFastProperties(filtered_exports); 231 %ToFastProperties(filtered_exports);
231 exports_container = filtered_exports; 232 exports_container = filtered_exports;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 344
344 extrasUtils.uncurryThis = function uncurryThis(func) { 345 extrasUtils.uncurryThis = function uncurryThis(func) {
345 return function(thisArg) { 346 return function(thisArg) {
346 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 347 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
347 }; 348 };
348 }; 349 };
349 350
350 %ToFastProperties(extrasUtils); 351 %ToFastProperties(extrasUtils);
351 352
352 }) 353 })
OLDNEW
« no previous file with comments | « src/js/harmony-species.js ('k') | test/mjsunit/harmony/species.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698