| 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 "InnerArrayLastIndexOf", | 175 "InnerArrayLastIndexOf", |
| 176 "InnerArrayMap", | 176 "InnerArrayMap", |
| 177 "InnerArrayReduce", | 177 "InnerArrayReduce", |
| 178 "InnerArrayReduceRight", | 178 "InnerArrayReduceRight", |
| 179 "InnerArrayReverse", | 179 "InnerArrayReverse", |
| 180 "InnerArraySome", | 180 "InnerArraySome", |
| 181 "InnerArraySort", | 181 "InnerArraySort", |
| 182 "InnerArrayToLocaleString", | 182 "InnerArrayToLocaleString", |
| 183 "IsNaN", | 183 "IsNaN", |
| 184 "MapEntries", | 184 "MapEntries", |
| 185 "MapIterator", |
| 185 "MapIteratorNext", | 186 "MapIteratorNext", |
| 186 "MathMax", | 187 "MathMax", |
| 187 "MathMin", | 188 "MathMin", |
| 188 "ObjectIsFrozen", | 189 "ObjectIsFrozen", |
| 189 "ObjectDefineProperty", | 190 "ObjectDefineProperty", |
| 190 "ObserveArrayMethods", | 191 "ObserveArrayMethods", |
| 191 "ObserveObjectMethods", | 192 "ObserveObjectMethods", |
| 192 "OwnPropertyKeys", | 193 "OwnPropertyKeys", |
| 194 "SameValueZero", |
| 195 "SetIterator", |
| 193 "SetIteratorNext", | 196 "SetIteratorNext", |
| 194 "SetValues", | 197 "SetValues", |
| 195 "SymbolToString", | 198 "SymbolToString", |
| 196 "ToNameArray", | 199 "ToNameArray", |
| 197 "ToPositiveInteger", | 200 "ToPositiveInteger", |
| 198 // From runtime: | 201 // From runtime: |
| 199 "is_concat_spreadable_symbol", | 202 "is_concat_spreadable_symbol", |
| 200 "iterator_symbol", | 203 "iterator_symbol", |
| 201 "promise_status_symbol", | 204 "promise_status_symbol", |
| 202 "promise_value_symbol", | 205 "promise_value_symbol", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 223 %CheckIsBootstrapping(); | 226 %CheckIsBootstrapping(); |
| 224 %ExportExperimentalFromRuntime(exports_container); | 227 %ExportExperimentalFromRuntime(exports_container); |
| 225 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 228 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
| 226 imports(exports_container); | 229 imports(exports_container); |
| 227 } | 230 } |
| 228 for ( ; !IS_UNDEFINED(imports_from_experimental); | 231 for ( ; !IS_UNDEFINED(imports_from_experimental); |
| 229 imports_from_experimental = imports_from_experimental.next) { | 232 imports_from_experimental = imports_from_experimental.next) { |
| 230 imports_from_experimental(exports_container); | 233 imports_from_experimental(exports_container); |
| 231 } | 234 } |
| 232 | 235 |
| 233 exports_container = UNDEFINED; | 236 utils.Export = UNDEFINED; |
| 234 | 237 utils.PostDebug = UNDEFINED; |
| 235 utils.PostExperimentals = UNDEFINED; | 238 utils.PostExperimentals = UNDEFINED; |
| 236 utils.PostDebug = UNDEFINED; | |
| 237 utils.Import = UNDEFINED; | |
| 238 utils.Export = UNDEFINED; | |
| 239 } | 239 } |
| 240 | 240 |
| 241 | 241 |
| 242 function PostDebug(utils) { | 242 function PostDebug(utils) { |
| 243 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 243 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
| 244 imports(exports_container); | 244 imports(exports_container); |
| 245 } | 245 } |
| 246 | 246 |
| 247 exports_container = UNDEFINED; | 247 exports_container = UNDEFINED; |
| 248 | 248 |
| 249 utils.Export = UNDEFINED; |
| 250 utils.Import = UNDEFINED; |
| 251 utils.ImportNow = UNDEFINED; |
| 249 utils.PostDebug = UNDEFINED; | 252 utils.PostDebug = UNDEFINED; |
| 250 utils.PostExperimentals = UNDEFINED; | 253 utils.PostExperimentals = UNDEFINED; |
| 251 utils.Import = UNDEFINED; | |
| 252 utils.Export = UNDEFINED; | |
| 253 } | 254 } |
| 254 | 255 |
| 256 |
| 255 // ----------------------------------------------------------------------- | 257 // ----------------------------------------------------------------------- |
| 256 | 258 |
| 257 %OptimizeObjectForAddingMultipleProperties(utils, 13); | 259 %OptimizeObjectForAddingMultipleProperties(utils, 13); |
| 258 | 260 |
| 259 utils.Import = Import; | 261 utils.Import = Import; |
| 260 utils.ImportNow = ImportNow; | 262 utils.ImportNow = ImportNow; |
| 261 utils.Export = Export; | 263 utils.Export = Export; |
| 262 utils.ImportFromExperimental = ImportFromExperimental; | 264 utils.ImportFromExperimental = ImportFromExperimental; |
| 263 utils.SetFunctionName = SetFunctionName; | 265 utils.SetFunctionName = SetFunctionName; |
| 264 utils.InstallConstants = InstallConstants; | 266 utils.InstallConstants = InstallConstants; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 313 |
| 312 extrasUtils.uncurryThis = function uncurryThis(func) { | 314 extrasUtils.uncurryThis = function uncurryThis(func) { |
| 313 return function(thisArg) { | 315 return function(thisArg) { |
| 314 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); | 316 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); |
| 315 }; | 317 }; |
| 316 }; | 318 }; |
| 317 | 319 |
| 318 %ToFastProperties(extrasUtils); | 320 %ToFastProperties(extrasUtils); |
| 319 | 321 |
| 320 }) | 322 }) |
| OLD | NEW |