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

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: fix some nits 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
« no previous file with comments | « src/js/harmony-async-await.js ('k') | src/js/promise.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "AddBoundMethod", 184 "AddBoundMethod",
185 "ArrayToString", 185 "ArrayToString",
186 "AsyncFunctionNext",
187 "AsyncFunctionThrow",
186 "ErrorToString", 188 "ErrorToString",
187 "GetIterator", 189 "GetIterator",
188 "GetMethod", 190 "GetMethod",
189 "IntlParseDate", 191 "IntlParseDate",
190 "IntlParseNumber", 192 "IntlParseNumber",
191 "IsNaN", 193 "IsNaN",
192 "MakeError", 194 "MakeError",
193 "MakeRangeError", 195 "MakeRangeError",
194 "MakeTypeError", 196 "MakeTypeError",
195 "MapEntries", 197 "MapEntries",
196 "MapIterator", 198 "MapIterator",
197 "MapIteratorNext", 199 "MapIteratorNext",
198 "MaxSimple", 200 "MaxSimple",
199 "MinSimple", 201 "MinSimple",
200 "NumberIsInteger", 202 "NumberIsInteger",
201 "PromiseChain", 203 "PromiseChain",
202 "PromiseDefer", 204 "PromiseDefer",
203 "PromiseAccept", 205 "PromiseAccept",
206 "PromiseCreateRejected",
207 "PromiseCreateResolved",
208 "PromiseThen",
204 "RegExpSubclassExecJS", 209 "RegExpSubclassExecJS",
205 "RegExpSubclassMatch", 210 "RegExpSubclassMatch",
206 "RegExpSubclassReplace", 211 "RegExpSubclassReplace",
207 "RegExpSubclassSearch", 212 "RegExpSubclassSearch",
208 "RegExpSubclassSplit", 213 "RegExpSubclassSplit",
209 "RegExpSubclassTest", 214 "RegExpSubclassTest",
210 "SetIterator", 215 "SetIterator",
211 "SetIteratorNext", 216 "SetIteratorNext",
212 "SetValues", 217 "SetValues",
213 "SymbolToString", 218 "SymbolToString",
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 364
360 extrasUtils.uncurryThis = function uncurryThis(func) { 365 extrasUtils.uncurryThis = function uncurryThis(func) {
361 return function(thisArg, ...args) { 366 return function(thisArg, ...args) {
362 return %reflect_apply(func, thisArg, args); 367 return %reflect_apply(func, thisArg, args);
363 }; 368 };
364 }; 369 };
365 370
366 %ToFastProperties(extrasUtils); 371 %ToFastProperties(extrasUtils);
367 372
368 }) 373 })
OLDNEW
« no previous file with comments | « src/js/harmony-async-await.js ('k') | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698