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

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

Issue 2590563003: [promises] Remove deferred object (Closed)
Patch Set: rebase Created 3 years, 11 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/objects-inl.h ('k') | src/runtime/runtime.h » ('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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 void JSArray::JSArrayPrint(std::ostream& os) { // NOLINT 538 void JSArray::JSArrayPrint(std::ostream& os) { // NOLINT
539 JSObjectPrintHeader(os, this, "JSArray"); 539 JSObjectPrintHeader(os, this, "JSArray");
540 os << "\n - length = " << Brief(this->length()); 540 os << "\n - length = " << Brief(this->length());
541 JSObjectPrintBody(os, this); 541 JSObjectPrintBody(os, this);
542 } 542 }
543 543
544 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT 544 void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT
545 JSObjectPrintHeader(os, this, "JSPromise"); 545 JSObjectPrintHeader(os, this, "JSPromise");
546 os << "\n - status = " << JSPromise::Status(status()); 546 os << "\n - status = " << JSPromise::Status(status());
547 os << "\n - result = " << Brief(result()); 547 os << "\n - result = " << Brief(result());
548 os << "\n - deferreds = " << Brief(deferred()); 548 os << "\n - deferred_promise: " << Brief(deferred_promise());
549 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
550 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
549 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions()); 551 os << "\n - fulfill_reactions = " << Brief(fulfill_reactions());
550 os << "\n - reject_reactions = " << Brief(reject_reactions()); 552 os << "\n - reject_reactions = " << Brief(reject_reactions());
551 os << "\n - has_handler = " << has_handler(); 553 os << "\n - has_handler = " << has_handler();
552 } 554 }
553 555
554 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT 556 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT
555 JSObjectPrintHeader(os, this, "JSRegExp"); 557 JSObjectPrintHeader(os, this, "JSRegExp");
556 os << "\n - data = " << Brief(data()); 558 os << "\n - data = " << Brief(data());
557 JSObjectPrintBody(os, this); 559 JSObjectPrintBody(os, this);
558 } 560 }
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 os << "\n - context: " << Brief(context()); 1228 os << "\n - context: " << Brief(context());
1227 os << "\n"; 1229 os << "\n";
1228 } 1230 }
1229 1231
1230 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( 1232 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint(
1231 std::ostream& os) { // NOLINT 1233 std::ostream& os) { // NOLINT
1232 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); 1234 HeapObject::PrintHeader(os, "PromiseReactionJobInfo");
1233 os << "\n - promise: " << Brief(promise()); 1235 os << "\n - promise: " << Brief(promise());
1234 os << "\n - value: " << Brief(value()); 1236 os << "\n - value: " << Brief(value());
1235 os << "\n - tasks: " << Brief(tasks()); 1237 os << "\n - tasks: " << Brief(tasks());
1236 os << "\n - deferred: " << Brief(deferred()); 1238 os << "\n - deferred_promise: " << Brief(deferred_promise());
1239 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
1240 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
1237 os << "\n - debug id: " << Brief(debug_id()); 1241 os << "\n - debug id: " << Brief(debug_id());
1238 os << "\n - debug name: " << Brief(debug_name()); 1242 os << "\n - debug name: " << Brief(debug_name());
1239 os << "\n - reaction context: " << Brief(context()); 1243 os << "\n - reaction context: " << Brief(context());
1240 os << "\n"; 1244 os << "\n";
1241 } 1245 }
1242 1246
1243 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT 1247 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT
1244 HeapObject::PrintHeader(os, "ModuleInfoEntry"); 1248 HeapObject::PrintHeader(os, "ModuleInfoEntry");
1245 os << "\n - export_name: " << Brief(export_name()); 1249 os << "\n - export_name: " << Brief(export_name());
1246 os << "\n - local_name: " << Brief(local_name()); 1250 os << "\n - local_name: " << Brief(local_name());
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 printf("Not a transition array\n"); 1684 printf("Not a transition array\n");
1681 } else { 1685 } else {
1682 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1686 reinterpret_cast<i::TransitionArray*>(object)->Print();
1683 } 1687 }
1684 } 1688 }
1685 1689
1686 extern void _v8_internal_Print_StackTrace() { 1690 extern void _v8_internal_Print_StackTrace() {
1687 i::Isolate* isolate = i::Isolate::Current(); 1691 i::Isolate* isolate = i::Isolate::Current();
1688 isolate->PrintStack(stdout); 1692 isolate->PrintStack(stdout);
1689 } 1693 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698