Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: src/js/prologue.js

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: properly rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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",
185 "ErrorToString", 187 "ErrorToString",
186 "GetIterator", 188 "GetIterator",
187 "GetMethod", 189 "GetMethod",
188 "IsNaN", 190 "IsNaN",
189 "MakeError", 191 "MakeError",
190 "MakeRangeError", 192 "MakeRangeError",
191 "MakeTypeError", 193 "MakeTypeError",
192 "MapEntries", 194 "MapEntries",
193 "MapIterator", 195 "MapIterator",
194 "MapIteratorNext", 196 "MapIteratorNext",
195 "MaxSimple", 197 "MaxSimple",
196 "MinSimple", 198 "MinSimple",
197 "NumberIsInteger", 199 "NumberIsInteger",
198 "PromiseChain", 200 "PromiseChain",
199 "PromiseDefer", 201 "PromiseDefer",
200 "PromiseAccept", 202 "PromiseAccept",
203 "PromiseCreateRejected",
204 "PromiseCreateResolved",
205 "PromiseThen",
201 "RegExpSubclassExecJS", 206 "RegExpSubclassExecJS",
202 "RegExpSubclassMatch", 207 "RegExpSubclassMatch",
203 "RegExpSubclassReplace", 208 "RegExpSubclassReplace",
204 "RegExpSubclassSearch", 209 "RegExpSubclassSearch",
205 "RegExpSubclassSplit", 210 "RegExpSubclassSplit",
206 "RegExpSubclassTest", 211 "RegExpSubclassTest",
207 "SetIterator", 212 "SetIterator",
208 "SetIteratorNext", 213 "SetIteratorNext",
209 "SetValues", 214 "SetValues",
210 "SymbolToString", 215 "SymbolToString",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 357
353 extrasUtils.uncurryThis = function uncurryThis(func) { 358 extrasUtils.uncurryThis = function uncurryThis(func) {
354 return function(thisArg, ...args) { 359 return function(thisArg, ...args) {
355 return %reflect_apply(func, thisArg, args); 360 return %reflect_apply(func, thisArg, args);
356 }; 361 };
357 }; 362 };
358 363
359 %ToFastProperties(extrasUtils); 364 %ToFastProperties(extrasUtils);
360 365
361 }) 366 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698