| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 JSObjectPrintBody(os, this); | 544 JSObjectPrintBody(os, this); |
| 545 } | 545 } |
| 546 | 546 |
| 547 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT | 547 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT |
| 548 JSObjectPrintHeader(os, this, "JSPromise"); | 548 JSObjectPrintHeader(os, this, "JSPromise"); |
| 549 os << "\n - status = " << JSPromise::Status(status()); | 549 os << "\n - status = " << JSPromise::Status(status()); |
| 550 os << "\n - result = " << Brief(result()); | 550 os << "\n - result = " << Brief(result()); |
| 551 os << "\n - deferreds = " << Brief(deferred()); | 551 os << "\n - deferreds = " << Brief(deferred()); |
| 552 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions()); | 552 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions()); |
| 553 os << "\n - reject_reactions = " << Brief(reject_reactions()); | 553 os << "\n - reject_reactions = " << Brief(reject_reactions()); |
| 554 os << "\n - has_handler = " << has_handler(); |
| 554 } | 555 } |
| 555 | 556 |
| 556 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT | 557 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT |
| 557 JSObjectPrintHeader(os, this, "JSRegExp"); | 558 JSObjectPrintHeader(os, this, "JSRegExp"); |
| 558 os << "\n - data = " << Brief(data()); | 559 os << "\n - data = " << Brief(data()); |
| 559 JSObjectPrintBody(os, this); | 560 JSObjectPrintBody(os, this); |
| 560 } | 561 } |
| 561 | 562 |
| 562 | 563 |
| 563 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT | 564 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT |
| (...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1683 printf("Not a transition array\n"); | 1684 printf("Not a transition array\n"); |
| 1684 } else { | 1685 } else { |
| 1685 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1686 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
| 1686 } | 1687 } |
| 1687 } | 1688 } |
| 1688 | 1689 |
| 1689 extern void _v8_internal_Print_StackTrace() { | 1690 extern void _v8_internal_Print_StackTrace() { |
| 1690 i::Isolate* isolate = i::Isolate::Current(); | 1691 i::Isolate* isolate = i::Isolate::Current(); |
| 1691 isolate->PrintStack(stdout); | 1692 isolate->PrintStack(stdout); |
| 1692 } | 1693 } |
| OLD | NEW |