OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |