Chromium Code Reviews| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 filtered_exports[key] = exports_container[key]; | 194 filtered_exports[key] = exports_container[key]; |
| 195 } | 195 } |
| 196 %ToFastProperties(filtered_exports); | 196 %ToFastProperties(filtered_exports); |
| 197 exports_container = filtered_exports; | 197 exports_container = filtered_exports; |
| 198 | 198 |
| 199 utils.PostNatives = UNDEFINED; | 199 utils.PostNatives = UNDEFINED; |
| 200 utils.ImportFromExperimental = UNDEFINED; | 200 utils.ImportFromExperimental = UNDEFINED; |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 function PostExperimentals(utils) { | 204 function PostExperimentals(utils) { |
|
Yang
2017/02/15 12:40:15
We should figure out a way to not run this functio
Dan Ehrenberg
2017/02/15 16:43:27
Rather than doing that, I was thinking of just get
| |
| 205 %CheckIsBootstrapping(); | 205 %CheckIsBootstrapping(); |
| 206 %ExportExperimentalFromRuntime(exports_container); | |
| 207 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 206 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
| 208 imports(exports_container); | 207 imports(exports_container); |
| 209 } | 208 } |
| 210 for ( ; !IS_UNDEFINED(imports_from_experimental); | 209 for ( ; !IS_UNDEFINED(imports_from_experimental); |
| 211 imports_from_experimental = imports_from_experimental.next) { | 210 imports_from_experimental = imports_from_experimental.next) { |
| 212 imports_from_experimental(exports_container); | 211 imports_from_experimental(exports_container); |
| 213 } | 212 } |
| 214 | 213 |
| 215 utils.Export = UNDEFINED; | 214 utils.Export = UNDEFINED; |
| 216 utils.PostDebug = UNDEFINED; | 215 utils.PostDebug = UNDEFINED; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 312 %promise_internal_reject(promise, reason, true); | 311 %promise_internal_reject(promise, reason, true); |
| 313 } | 312 } |
| 314 | 313 |
| 315 extrasUtils.markPromiseAsHandled = function markPromiseAsHandled(promise) { | 314 extrasUtils.markPromiseAsHandled = function markPromiseAsHandled(promise) { |
| 316 %PromiseMarkAsHandled(promise); | 315 %PromiseMarkAsHandled(promise); |
| 317 }; | 316 }; |
| 318 | 317 |
| 319 %ToFastProperties(extrasUtils); | 318 %ToFastProperties(extrasUtils); |
| 320 | 319 |
| 321 }) | 320 }) |
| OLD | NEW |