| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 166 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
| 167 imports(exports_container); | 167 imports(exports_container); |
| 168 } | 168 } |
| 169 | 169 |
| 170 // Whitelist of exports from normal natives to experimental natives and debug. | 170 // Whitelist of exports from normal natives to experimental natives and debug. |
| 171 var expose_list = [ | 171 var expose_list = [ |
| 172 "ArrayToString", | 172 "ArrayToString", |
| 173 "ErrorToString", | 173 "ErrorToString", |
| 174 "GetIterator", | 174 "GetIterator", |
| 175 "GetMethod", | 175 "GetMethod", |
| 176 "InnerArrayEvery", | |
| 177 "InnerArrayFilter", | |
| 178 "InnerArrayForEach", | |
| 179 "InnerArrayIndexOf", | |
| 180 "InnerArrayJoin", | |
| 181 "InnerArrayLastIndexOf", | |
| 182 "InnerArrayMap", | |
| 183 "InnerArrayReduce", | |
| 184 "InnerArrayReduceRight", | |
| 185 "InnerArrayReverse", | |
| 186 "InnerArraySome", | |
| 187 "InnerArraySort", | |
| 188 "InnerArrayToLocaleString", | |
| 189 "IsNaN", | 176 "IsNaN", |
| 190 "MakeError", | 177 "MakeError", |
| 191 "MakeTypeError", | 178 "MakeTypeError", |
| 192 "MapEntries", | 179 "MapEntries", |
| 193 "MapIterator", | 180 "MapIterator", |
| 194 "MapIteratorNext", | 181 "MapIteratorNext", |
| 195 "MathMax", | 182 "MathMax", |
| 196 "MathMin", | 183 "MathMin", |
| 197 "MaxSimple", | 184 "MaxSimple", |
| 198 "MinSimple", | 185 "MinSimple", |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 333 |
| 347 extrasUtils.uncurryThis = function uncurryThis(func) { | 334 extrasUtils.uncurryThis = function uncurryThis(func) { |
| 348 return function(thisArg) { | 335 return function(thisArg) { |
| 349 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); | 336 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); |
| 350 }; | 337 }; |
| 351 }; | 338 }; |
| 352 | 339 |
| 353 %ToFastProperties(extrasUtils); | 340 %ToFastProperties(extrasUtils); |
| 354 | 341 |
| 355 }) | 342 }) |
| OLD | NEW |