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/objects-printer.cc

Issue 2695753002: [ESnext] Implement Promise.prototype.finally (Closed)
Patch Set: ffs 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
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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 printf("Not a transition array\n"); 1667 printf("Not a transition array\n");
1667 } else { 1668 } else {
1668 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1669 reinterpret_cast<i::TransitionArray*>(object)->Print();
1669 } 1670 }
1670 } 1671 }
1671 1672
1672 extern void _v8_internal_Print_StackTrace() { 1673 extern void _v8_internal_Print_StackTrace() {
1673 i::Isolate* isolate = i::Isolate::Current(); 1674 i::Isolate* isolate = i::Isolate::Current();
1674 isolate->PrintStack(stdout); 1675 isolate->PrintStack(stdout);
1675 } 1676 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698