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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 %CheckIsBootstrapping(); | 162 %CheckIsBootstrapping(); |
163 | 163 |
164 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 164 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
165 imports(exports_container); | 165 imports(exports_container); |
166 } | 166 } |
167 | 167 |
168 // Whitelist of exports from normal natives to experimental natives and debug. | 168 // Whitelist of exports from normal natives to experimental natives and debug. |
169 var expose_list = [ | 169 var expose_list = [ |
170 "FormatDateToParts", | 170 "FormatDateToParts", |
171 "MapEntries", | 171 "MapEntries", |
172 "MapIterator", | |
173 "MapIteratorNext", | 172 "MapIteratorNext", |
174 "MaxSimple", | 173 "MaxSimple", |
175 "MinSimple", | 174 "MinSimple", |
176 "SetIterator", | |
177 "SetIteratorNext", | 175 "SetIteratorNext", |
178 "SetValues", | 176 "SetValues", |
179 "ToLocaleLowerCaseI18N", | 177 "ToLocaleLowerCaseI18N", |
180 "ToLocaleUpperCaseI18N", | 178 "ToLocaleUpperCaseI18N", |
181 "ToLowerCaseI18N", | 179 "ToLowerCaseI18N", |
182 "ToUpperCaseI18N", | 180 "ToUpperCaseI18N", |
183 // From runtime: | 181 // From runtime: |
184 "promise_result_symbol", | 182 "promise_result_symbol", |
185 "promise_state_symbol", | 183 "promise_state_symbol", |
186 "reflect_apply", | 184 "reflect_apply", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 %promise_internal_reject(promise, reason, true); | 309 %promise_internal_reject(promise, reason, true); |
312 } | 310 } |
313 | 311 |
314 extrasUtils.markPromiseAsHandled = function markPromiseAsHandled(promise) { | 312 extrasUtils.markPromiseAsHandled = function markPromiseAsHandled(promise) { |
315 %PromiseMarkAsHandled(promise); | 313 %PromiseMarkAsHandled(promise); |
316 }; | 314 }; |
317 | 315 |
318 %ToFastProperties(extrasUtils); | 316 %ToFastProperties(extrasUtils); |
319 | 317 |
320 }) | 318 }) |
OLD | NEW |