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

Side by Side Diff: src/objects-printer.cc

Issue 2695753002: [ESnext] Implement Promise.prototype.finally (Closed)
Patch Set: Rename GotoUnless Created 3 years, 10 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/flag-definitions.h ('k') | test/mjsunit/harmony/promise-prototype-finally.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 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT 493 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT
494 JSObjectPrintHeader(os, this, "JSPromise"); 494 JSObjectPrintHeader(os, this, "JSPromise");
495 os << "\n - status = " << JSPromise::Status(status()); 495 os << "\n - status = " << JSPromise::Status(status());
496 os << "\n - result = " << Brief(result()); 496 os << "\n - result = " << Brief(result());
497 os << "\n - deferred_promise: " << Brief(deferred_promise()); 497 os << "\n - deferred_promise: " << Brief(deferred_promise());
498 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve()); 498 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
499 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject()); 499 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
500 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions()); 500 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions());
501 os << "\n - reject_reactions = " << Brief(reject_reactions()); 501 os << "\n - reject_reactions = " << Brief(reject_reactions());
502 os << "\n - has_handler = " << has_handler(); 502 os << "\n - has_handler = " << has_handler();
503 os << "\n ";
503 } 504 }
504 505
505 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT 506 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT
506 JSObjectPrintHeader(os, this, "JSRegExp"); 507 JSObjectPrintHeader(os, this, "JSRegExp");
507 os << "\n - data = " << Brief(data()); 508 os << "\n - data = " << Brief(data());
508 JSObjectPrintBody(os, this); 509 JSObjectPrintBody(os, this);
509 } 510 }
510 511
511 512
512 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT 513 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 printf("Not a transition array\n"); 1692 printf("Not a transition array\n");
1692 } else { 1693 } else {
1693 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1694 reinterpret_cast<i::TransitionArray*>(object)->Print();
1694 } 1695 }
1695 } 1696 }
1696 1697
1697 extern void _v8_internal_Print_StackTrace() { 1698 extern void _v8_internal_Print_StackTrace() {
1698 i::Isolate* isolate = i::Isolate::Current(); 1699 i::Isolate* isolate = i::Isolate::Current();
1699 isolate->PrintStack(stdout); 1700 isolate->PrintStack(stdout);
1700 } 1701 }
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/mjsunit/harmony/promise-prototype-finally.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698