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