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

Side by Side Diff: src/promise.js

Issue 1294583006: Clean up native context slots and add new ones. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/prologue.js ('k') | no next file » | 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 $promiseHasUserDefinedRejectHandler; 5 var $promiseHasUserDefinedRejectHandler;
6 var $promiseStatus; 6 var $promiseStatus;
7 var $promiseValue; 7 var $promiseValue;
8 8
9 (function(global, utils) { 9 (function(global, utils) {
10 10
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 "race", PromiseRace, 373 "race", PromiseRace,
374 "resolve", PromiseCast 374 "resolve", PromiseCast
375 ]); 375 ]);
376 376
377 utils.InstallFunctions(GlobalPromise.prototype, DONT_ENUM, [ 377 utils.InstallFunctions(GlobalPromise.prototype, DONT_ENUM, [
378 "chain", PromiseChain, 378 "chain", PromiseChain,
379 "then", PromiseThen, 379 "then", PromiseThen,
380 "catch", PromiseCatch 380 "catch", PromiseCatch
381 ]); 381 ]);
382 382
383 $promiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler;
384 $promiseStatus = promiseStatus; 383 $promiseStatus = promiseStatus;
385 $promiseValue = promiseValue; 384 $promiseValue = promiseValue;
386 385
387 utils.ExportToRuntime(function(to) { 386 utils.ExportToRuntime(function(to) {
388 to.promiseStatus = promiseStatus; 387 to.promiseStatus = promiseStatus;
389 to.promiseValue = promiseValue; 388 to.promiseValue = promiseValue;
390 to.PromiseCreate = PromiseCreate; 389 to.PromiseCreate = PromiseCreate;
391 to.PromiseResolve = PromiseResolve; 390 to.PromiseResolve = PromiseResolve;
392 to.PromiseReject = PromiseReject; 391 to.PromiseReject = PromiseReject;
393 to.PromiseChain = PromiseChain; 392 to.PromiseChain = PromiseChain;
394 to.PromiseCatch = PromiseCatch; 393 to.PromiseCatch = PromiseCatch;
395 to.PromiseThen = PromiseThen; 394 to.PromiseThen = PromiseThen;
395 to.PromiseHasUserDefinedRejectHandler = PromiseHasUserDefinedRejectHandler;
396 }); 396 });
397 397
398 }) 398 })
OLDNEW
« no previous file with comments | « src/prologue.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698