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

Side by Side Diff: src/promise.js

Issue 1123353008: Revert of Use function wrapper argument to expose internal arrays to native scripts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/objects.h ('k') | src/regexp.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 var $promiseCreate; 5 var $promiseCreate;
6 var $promiseResolve; 6 var $promiseResolve;
7 var $promiseReject; 7 var $promiseReject;
8 var $promiseChain; 8 var $promiseChain;
9 var $promiseCatch; 9 var $promiseCatch;
10 var $promiseThen; 10 var $promiseThen;
11 var $promiseHasUserDefinedRejectHandler; 11 var $promiseHasUserDefinedRejectHandler;
12 var $promiseStatus; 12 var $promiseStatus;
13 var $promiseValue; 13 var $promiseValue;
14 14
15 (function(global, shared, exports) { 15 (function(global, shared, exports) {
16 16
17 "use strict"; 17 "use strict";
18 18
19 %CheckIsBootstrapping(); 19 %CheckIsBootstrapping();
20 20
21 // ------------------------------------------------------------------- 21 // -------------------------------------------------------------------
22 // Imports
23 22
24 var InternalArray = shared.InternalArray;
25
26 // -------------------------------------------------------------------
27
28 // Status values: 0 = pending, +1 = resolved, -1 = rejected 23 // Status values: 0 = pending, +1 = resolved, -1 = rejected
29 var promiseStatus = GLOBAL_PRIVATE("Promise#status"); 24 var promiseStatus = GLOBAL_PRIVATE("Promise#status");
30 var promiseValue = GLOBAL_PRIVATE("Promise#value"); 25 var promiseValue = GLOBAL_PRIVATE("Promise#value");
31 var promiseOnResolve = GLOBAL_PRIVATE("Promise#onResolve"); 26 var promiseOnResolve = GLOBAL_PRIVATE("Promise#onResolve");
32 var promiseOnReject = GLOBAL_PRIVATE("Promise#onReject"); 27 var promiseOnReject = GLOBAL_PRIVATE("Promise#onReject");
33 var promiseRaw = GLOBAL_PRIVATE("Promise#raw"); 28 var promiseRaw = GLOBAL_PRIVATE("Promise#raw");
34 var promiseHasHandler = %PromiseHasHandlerSymbol(); 29 var promiseHasHandler = %PromiseHasHandlerSymbol();
35 var lastMicrotaskId = 0; 30 var lastMicrotaskId = 0;
36 31
37 var GlobalPromise = function Promise(resolver) { 32 var GlobalPromise = function Promise(resolver) {
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 $promiseResolve = PromiseResolve; 385 $promiseResolve = PromiseResolve;
391 $promiseReject = PromiseReject; 386 $promiseReject = PromiseReject;
392 $promiseChain = PromiseChain; 387 $promiseChain = PromiseChain;
393 $promiseCatch = PromiseCatch; 388 $promiseCatch = PromiseCatch;
394 $promiseThen = PromiseThen; 389 $promiseThen = PromiseThen;
395 $promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler; 390 $promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler;
396 $promiseStatus = promiseStatus; 391 $promiseStatus = promiseStatus;
397 $promiseValue = promiseValue; 392 $promiseValue = promiseValue;
398 393
399 }) 394 })
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/regexp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698