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

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

Issue 1419823010: Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
Patch Set: new webkit expectations Created 5 years, 1 month 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 "SymbolToString", 210 "SymbolToString",
211 "ToNameArray", 211 "ToNameArray",
212 "ToPositiveInteger", 212 "ToPositiveInteger",
213 // From runtime: 213 // From runtime:
214 "is_concat_spreadable_symbol", 214 "is_concat_spreadable_symbol",
215 "iterator_symbol", 215 "iterator_symbol",
216 "promise_status_symbol", 216 "promise_status_symbol",
217 "promise_value_symbol", 217 "promise_value_symbol",
218 "reflect_apply", 218 "reflect_apply",
219 "reflect_construct", 219 "reflect_construct",
220 "regexp_flags_symbol",
220 "to_string_tag_symbol", 221 "to_string_tag_symbol",
221 ]; 222 ];
222 223
223 var filtered_exports = {}; 224 var filtered_exports = {};
224 %OptimizeObjectForAddingMultipleProperties( 225 %OptimizeObjectForAddingMultipleProperties(
225 filtered_exports, expose_list.length); 226 filtered_exports, expose_list.length);
226 for (var key of expose_list) { 227 for (var key of expose_list) {
227 filtered_exports[key] = exports_container[key]; 228 filtered_exports[key] = exports_container[key];
228 } 229 }
229 %ToFastProperties(filtered_exports); 230 %ToFastProperties(filtered_exports);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 347
347 extrasUtils.uncurryThis = function uncurryThis(func) { 348 extrasUtils.uncurryThis = function uncurryThis(func) {
348 return function(thisArg) { 349 return function(thisArg) {
349 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 350 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
350 }; 351 };
351 }; 352 };
352 353
353 %ToFastProperties(extrasUtils); 354 %ToFastProperties(extrasUtils);
354 355
355 }) 356 })
OLDNEW
« src/bootstrapper.cc ('K') | « src/js/macros.py ('k') | src/js/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698