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

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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: Created 4 years, 3 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/disasm.h" 10 #include "src/disasm.h"
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 os << "\n"; 1120 os << "\n";
1121 } 1121 }
1122 1122
1123 1123
1124 void Box::BoxPrint(std::ostream& os) { // NOLINT 1124 void Box::BoxPrint(std::ostream& os) { // NOLINT
1125 HeapObject::PrintHeader(os, "Box"); 1125 HeapObject::PrintHeader(os, "Box");
1126 os << "\n - value: " << Brief(value()); 1126 os << "\n - value: " << Brief(value());
1127 os << "\n"; 1127 os << "\n";
1128 } 1128 }
1129 1129
1130 void PromiseContainer::PromiseContainerPrint(std::ostream& os) { // NOLINT
1131 HeapObject::PrintHeader(os, "PromiseContainer");
1132 os << "\n - promise: " << Brief(promise());
1133 os << "\n - thenable: " << Brief(thenable());
1134 os << "\n - then: " << Brief(then());
1135 os << "\n - resolve: " << Brief(resolve());
1136 os << "\n - reject: " << Brief(reject());
1137 os << "\n";
1138 }
1130 1139
1131 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT 1140 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
1132 HeapObject::PrintHeader(os, "PrototypeInfo"); 1141 HeapObject::PrintHeader(os, "PrototypeInfo");
1133 os << "\n - prototype users: " << Brief(prototype_users()); 1142 os << "\n - prototype users: " << Brief(prototype_users());
1134 os << "\n - registry slot: " << registry_slot(); 1143 os << "\n - registry slot: " << registry_slot();
1135 os << "\n - validity cell: " << Brief(validity_cell()); 1144 os << "\n - validity cell: " << Brief(validity_cell());
1136 os << "\n"; 1145 os << "\n";
1137 } 1146 }
1138 1147
1139 1148
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 printf("Not a transition array\n"); 1510 printf("Not a transition array\n");
1502 } else { 1511 } else {
1503 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1512 reinterpret_cast<i::TransitionArray*>(object)->Print();
1504 } 1513 }
1505 } 1514 }
1506 1515
1507 extern void _v8_internal_Print_StackTrace() { 1516 extern void _v8_internal_Print_StackTrace() {
1508 i::Isolate* isolate = i::Isolate::Current(); 1517 i::Isolate* isolate = i::Isolate::Current();
1509 isolate->PrintStack(stdout); 1518 isolate->PrintStack(stdout);
1510 } 1519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698