| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 }) |
| OLD | NEW |