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 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", | |
| 187 "FormatDateToParts", | 185 "FormatDateToParts", |
| 188 "GetIterator", | 186 "GetIterator", |
| 189 "GetMethod", | 187 "GetMethod", |
| 190 "GlobalPromise", | |
| 191 "IsPromise", | |
| 192 "MapEntries", | 188 "MapEntries", |
| 193 "MapIterator", | 189 "MapIterator", |
| 194 "MapIteratorNext", | 190 "MapIteratorNext", |
| 195 "MaxSimple", | 191 "MaxSimple", |
| 196 "MinSimple", | 192 "MinSimple", |
| 197 "NewPromiseCapability", | |
| 198 "PerformPromiseThen", | |
| 199 "PromiseThen", | |
| 200 "PromiseCreate", | |
| 201 "PromiseNextMicrotaskID", | |
| 202 "RegExpSubclassExecJS", | |
| 203 "RegExpSubclassMatch", | |
| 204 "RegExpSubclassReplace", | |
| 205 "RegExpSubclassSearch", | |
| 206 "RegExpSubclassSplit", | |
| 207 "RegExpSubclassTest", | |
|
gsathya
2016/09/24 15:04:49
These RegExp changes seem unrelated to this patch
Dan Ehrenberg
2016/09/24 15:07:02
Yes, a drive by cleanup. I noted it in the commit
| |
| 208 "RejectPromise", | |
| 209 "ResolvePromise", | |
| 210 "SetIterator", | 193 "SetIterator", |
| 211 "SetIteratorNext", | 194 "SetIteratorNext", |
| 212 "SetValues", | 195 "SetValues", |
| 213 "ToLocaleLowerCaseI18N", | 196 "ToLocaleLowerCaseI18N", |
| 214 "ToLocaleUpperCaseI18N", | 197 "ToLocaleUpperCaseI18N", |
| 215 "ToLowerCaseI18N", | 198 "ToLowerCaseI18N", |
| 216 "ToPositiveInteger", | 199 "ToPositiveInteger", |
| 217 "ToUpperCaseI18N", | 200 "ToUpperCaseI18N", |
| 218 // From runtime: | 201 // From runtime: |
| 219 "is_concat_spreadable_symbol", | 202 "is_concat_spreadable_symbol", |
| 220 "iterator_symbol", | 203 "iterator_symbol", |
| 221 "promise_async_stack_id_symbol", | |
| 222 "promise_result_symbol", | |
| 223 "promise_state_symbol", | |
| 224 "promise_forwarding_handler_symbol", | |
| 225 "promise_handled_by_symbol", | |
| 226 "promise_handled_hint_symbol", | |
| 227 "promise_has_handler_symbol", | |
| 228 "object_freeze", | 204 "object_freeze", |
| 229 "object_is_frozen", | 205 "object_is_frozen", |
| 230 "object_is_sealed", | 206 "object_is_sealed", |
| 207 "promise_result_symbol", | |
| 208 "promise_state_symbol", | |
| 231 "reflect_apply", | 209 "reflect_apply", |
| 232 "reflect_construct", | 210 "reflect_construct", |
| 233 "regexp_flags_symbol", | 211 "regexp_flags_symbol", |
| 234 "to_string_tag_symbol", | 212 "to_string_tag_symbol", |
| 235 "object_to_string", | 213 "object_to_string", |
| 236 "species_symbol", | 214 "species_symbol", |
| 237 "match_symbol", | 215 "match_symbol", |
| 238 "replace_symbol", | 216 "replace_symbol", |
| 239 "search_symbol", | 217 "search_symbol", |
| 240 "split_symbol", | 218 "split_symbol", |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 | 335 |
| 358 extrasUtils.uncurryThis = function uncurryThis(func) { | 336 extrasUtils.uncurryThis = function uncurryThis(func) { |
| 359 return function(thisArg, ...args) { | 337 return function(thisArg, ...args) { |
| 360 return %reflect_apply(func, thisArg, args); | 338 return %reflect_apply(func, thisArg, args); |
| 361 }; | 339 }; |
| 362 }; | 340 }; |
| 363 | 341 |
| 364 %ToFastProperties(extrasUtils); | 342 %ToFastProperties(extrasUtils); |
| 365 | 343 |
| 366 }) | 344 }) |
| OLD | NEW |