| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 function PostNatives(utils) { | 175 function PostNatives(utils) { |
| 176 %CheckIsBootstrapping(); | 176 %CheckIsBootstrapping(); |
| 177 | 177 |
| 178 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 178 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
| 179 imports(exports_container); | 179 imports(exports_container); |
| 180 } | 180 } |
| 181 | 181 |
| 182 // Whitelist of exports from normal natives to experimental natives and debug. | 182 // Whitelist of exports from normal natives to experimental natives and debug. |
| 183 var expose_list = [ | 183 var expose_list = [ |
| 184 "ArrayToString", | 184 "ArrayToString", |
| 185 "AsyncFunctionNext", |
| 186 "AsyncFunctionThrow", |
| 185 "ErrorToString", | 187 "ErrorToString", |
| 186 "GetIterator", | 188 "GetIterator", |
| 187 "GetMethod", | 189 "GetMethod", |
| 188 "IsNaN", | 190 "IsNaN", |
| 189 "MakeError", | 191 "MakeError", |
| 190 "MakeRangeError", | 192 "MakeRangeError", |
| 191 "MakeTypeError", | 193 "MakeTypeError", |
| 192 "MapEntries", | 194 "MapEntries", |
| 193 "MapIterator", | 195 "MapIterator", |
| 194 "MapIteratorNext", | 196 "MapIteratorNext", |
| 195 "MaxSimple", | 197 "MaxSimple", |
| 196 "MinSimple", | 198 "MinSimple", |
| 197 "NumberIsInteger", | 199 "NumberIsInteger", |
| 198 "ObjectDefineProperty", | 200 "ObjectDefineProperty", |
| 199 "ObserveArrayMethods", | 201 "ObserveArrayMethods", |
| 200 "ObserveObjectMethods", | 202 "ObserveObjectMethods", |
| 201 "PromiseChain", | 203 "PromiseChain", |
| 202 "PromiseDeferred", | 204 "PromiseDeferred", |
| 203 "PromiseResolved", | 205 "PromiseResolved", |
| 206 "PromiseCreateRejected", |
| 207 "PromiseCreateResolved", |
| 208 "PromiseThen", |
| 204 "RegExpSubclassExecJS", | 209 "RegExpSubclassExecJS", |
| 205 "RegExpSubclassMatch", | 210 "RegExpSubclassMatch", |
| 206 "RegExpSubclassReplace", | 211 "RegExpSubclassReplace", |
| 207 "RegExpSubclassSearch", | 212 "RegExpSubclassSearch", |
| 208 "RegExpSubclassSplit", | 213 "RegExpSubclassSplit", |
| 209 "RegExpSubclassTest", | 214 "RegExpSubclassTest", |
| 210 "SetIterator", | 215 "SetIterator", |
| 211 "SetIteratorNext", | 216 "SetIteratorNext", |
| 212 "SetValues", | 217 "SetValues", |
| 213 "SymbolToString", | 218 "SymbolToString", |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 360 |
| 356 extrasUtils.uncurryThis = function uncurryThis(func) { | 361 extrasUtils.uncurryThis = function uncurryThis(func) { |
| 357 return function(thisArg, ...args) { | 362 return function(thisArg, ...args) { |
| 358 return %reflect_apply(func, thisArg, args); | 363 return %reflect_apply(func, thisArg, args); |
| 359 }; | 364 }; |
| 360 }; | 365 }; |
| 361 | 366 |
| 362 %ToFastProperties(extrasUtils); | 367 %ToFastProperties(extrasUtils); |
| 363 | 368 |
| 364 }) | 369 }) |
| OLD | NEW |