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

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

Issue 1509533003: Rewrite Object.prototype.toString in C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, add back experimental flag Created 5 years 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/messages.js ('k') | src/js/v8natives.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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 "ToPositiveInteger", 213 "ToPositiveInteger",
214 // From runtime: 214 // From runtime:
215 "is_concat_spreadable_symbol", 215 "is_concat_spreadable_symbol",
216 "iterator_symbol", 216 "iterator_symbol",
217 "promise_status_symbol", 217 "promise_status_symbol",
218 "promise_value_symbol", 218 "promise_value_symbol",
219 "reflect_apply", 219 "reflect_apply",
220 "reflect_construct", 220 "reflect_construct",
221 "regexp_flags_symbol", 221 "regexp_flags_symbol",
222 "to_string_tag_symbol", 222 "to_string_tag_symbol",
223 "object_to_string",
223 ]; 224 ];
224 225
225 var filtered_exports = {}; 226 var filtered_exports = {};
226 %OptimizeObjectForAddingMultipleProperties( 227 %OptimizeObjectForAddingMultipleProperties(
227 filtered_exports, expose_list.length); 228 filtered_exports, expose_list.length);
228 for (var key of expose_list) { 229 for (var key of expose_list) {
229 filtered_exports[key] = exports_container[key]; 230 filtered_exports[key] = exports_container[key];
230 } 231 }
231 %ToFastProperties(filtered_exports); 232 %ToFastProperties(filtered_exports);
232 exports_container = filtered_exports; 233 exports_container = filtered_exports;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 345
345 extrasUtils.uncurryThis = function uncurryThis(func) { 346 extrasUtils.uncurryThis = function uncurryThis(func) {
346 return function(thisArg) { 347 return function(thisArg) {
347 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); 348 return %Apply(func, thisArg, arguments, 1, arguments.length - 1);
348 }; 349 };
349 }; 350 };
350 351
351 %ToFastProperties(extrasUtils); 352 %ToFastProperties(extrasUtils);
352 353
353 }) 354 })
OLDNEW
« no previous file with comments | « src/js/messages.js ('k') | src/js/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698