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

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: disable opt too to fix test variants ._< 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 "ObserveArrayMethods", 200 "ObserveArrayMethods",
199 "ObserveObjectMethods", 201 "ObserveObjectMethods",
200 "PromiseChain", 202 "PromiseChain",
201 "PromiseDeferred", 203 "PromiseDeferred",
202 "PromiseResolved", 204 "PromiseResolved",
205 "PromiseCreateRejected",
206 "PromiseCreateResolved",
207 "PromiseThen",
203 "RegExpSubclassExecJS", 208 "RegExpSubclassExecJS",
204 "RegExpSubclassMatch", 209 "RegExpSubclassMatch",
205 "RegExpSubclassReplace", 210 "RegExpSubclassReplace",
206 "RegExpSubclassSearch", 211 "RegExpSubclassSearch",
207 "RegExpSubclassSplit", 212 "RegExpSubclassSplit",
208 "RegExpSubclassTest", 213 "RegExpSubclassTest",
209 "SetIterator", 214 "SetIterator",
210 "SetIteratorNext", 215 "SetIteratorNext",
211 "SetValues", 216 "SetValues",
212 "SymbolToString", 217 "SymbolToString",
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 359
355 extrasUtils.uncurryThis = function uncurryThis(func) { 360 extrasUtils.uncurryThis = function uncurryThis(func) {
356 return function(thisArg, ...args) { 361 return function(thisArg, ...args) {
357 return %reflect_apply(func, thisArg, args); 362 return %reflect_apply(func, thisArg, args);
358 }; 363 };
359 }; 364 };
360 365
361 %ToFastProperties(extrasUtils); 366 %ToFastProperties(extrasUtils);
362 367
363 }) 368 })
OLDNEW
« src/builtins.cc ('K') | « 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