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

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

Issue 2590563003: [promises] Remove deferred object (Closed)
Patch Set: add comments Created 3 years, 12 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 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 os << "\n - context: " << Brief(context()); 1240 os << "\n - context: " << Brief(context());
1239 os << "\n"; 1241 os << "\n";
1240 } 1242 }
1241 1243
1242 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( 1244 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint(
1243 std::ostream& os) { // NOLINT 1245 std::ostream& os) { // NOLINT
1244 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); 1246 HeapObject::PrintHeader(os, "PromiseReactionJobInfo");
1245 os << "\n - promise: " << Brief(promise()); 1247 os << "\n - promise: " << Brief(promise());
1246 os << "\n - value: " << Brief(value()); 1248 os << "\n - value: " << Brief(value());
1247 os << "\n - tasks: " << Brief(tasks()); 1249 os << "\n - tasks: " << Brief(tasks());
1248 os << "\n - deferred: " << Brief(deferred()); 1250 os << "\n - deferred_promise: " << Brief(deferred_promise());
1251 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
1252 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
1249 os << "\n - debug id: " << Brief(debug_id()); 1253 os << "\n - debug id: " << Brief(debug_id());
1250 os << "\n - debug name: " << Brief(debug_name()); 1254 os << "\n - debug name: " << Brief(debug_name());
1251 os << "\n - reaction context: " << Brief(context()); 1255 os << "\n - reaction context: " << Brief(context());
1252 os << "\n"; 1256 os << "\n";
1253 } 1257 }
1254 1258
1255 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT 1259 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT
1256 HeapObject::PrintHeader(os, "ModuleInfoEntry"); 1260 HeapObject::PrintHeader(os, "ModuleInfoEntry");
1257 os << "\n - export_name: " << Brief(export_name()); 1261 os << "\n - export_name: " << Brief(export_name());
1258 os << "\n - local_name: " << Brief(local_name()); 1262 os << "\n - local_name: " << Brief(local_name());
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 printf("Not a transition array\n"); 1696 printf("Not a transition array\n");
1693 } else { 1697 } else {
1694 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1698 reinterpret_cast<i::TransitionArray*>(object)->Print();
1695 } 1699 }
1696 } 1700 }
1697 1701
1698 extern void _v8_internal_Print_StackTrace() { 1702 extern void _v8_internal_Print_StackTrace() {
1699 i::Isolate* isolate = i::Isolate::Current(); 1703 i::Isolate* isolate = i::Isolate::Current();
1700 isolate->PrintStack(stdout); 1704 isolate->PrintStack(stdout);
1701 } 1705 }
OLDNEW
« src/builtins/builtins-promise.cc ('K') | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698