OLD | NEW |
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 Loading... |
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 Loading... |
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 }) |
OLD | NEW |