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

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

Issue 2415023002: [promises] Move async debug event creation to c++ (Closed)
Patch Set: rebase Created 4 years, 2 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/disasm.h" 10 #include "src/disasm.h"
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 os << "\n"; 1161 os << "\n";
1162 } 1162 }
1163 1163
1164 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( 1164 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint(
1165 std::ostream& os) { // NOLINT 1165 std::ostream& os) { // NOLINT
1166 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); 1166 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo");
1167 os << "\n - thenable: " << Brief(thenable()); 1167 os << "\n - thenable: " << Brief(thenable());
1168 os << "\n - then: " << Brief(then()); 1168 os << "\n - then: " << Brief(then());
1169 os << "\n - resolve: " << Brief(resolve()); 1169 os << "\n - resolve: " << Brief(resolve());
1170 os << "\n - reject: " << Brief(reject()); 1170 os << "\n - reject: " << Brief(reject());
1171 os << "\n - before debug event: " << Brief(before_debug_event()); 1171 os << "\n - debug id: " << Brief(debug_id());
1172 os << "\n - after debug event: " << Brief(after_debug_event()); 1172 os << "\n - debug name: " << Brief(debug_name());
1173 os << "\n"; 1173 os << "\n";
1174 } 1174 }
1175 1175
1176 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( 1176 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint(
1177 std::ostream& os) { // NOLINT 1177 std::ostream& os) { // NOLINT
1178 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); 1178 HeapObject::PrintHeader(os, "PromiseReactionJobInfo");
1179 os << "\n - value: " << Brief(value()); 1179 os << "\n - value: " << Brief(value());
1180 os << "\n - tasks: " << Brief(tasks()); 1180 os << "\n - tasks: " << Brief(tasks());
1181 os << "\n - deferred: " << Brief(deferred()); 1181 os << "\n - deferred: " << Brief(deferred());
1182 os << "\n - before debug event: " << Brief(before_debug_event()); 1182 os << "\n - debug id: " << Brief(debug_id());
1183 os << "\n - after debug event: " << Brief(after_debug_event()); 1183 os << "\n - debug name: " << Brief(debug_name());
1184 os << "\n - reaction context: " << Brief(context()); 1184 os << "\n - reaction context: " << Brief(context());
1185 os << "\n"; 1185 os << "\n";
1186 } 1186 }
1187 1187
1188 void Module::ModulePrint(std::ostream& os) { // NOLINT 1188 void Module::ModulePrint(std::ostream& os) { // NOLINT
1189 HeapObject::PrintHeader(os, "Module"); 1189 HeapObject::PrintHeader(os, "Module");
1190 os << "\n - code: " << Brief(code()); 1190 os << "\n - code: " << Brief(code());
1191 os << "\n - exports: " << Brief(exports()); 1191 os << "\n - exports: " << Brief(exports());
1192 os << "\n - requested_modules: " << Brief(requested_modules()); 1192 os << "\n - requested_modules: " << Brief(requested_modules());
1193 os << "\n - evaluated: " << evaluated(); 1193 os << "\n - evaluated: " << evaluated();
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 printf("Not a transition array\n"); 1579 printf("Not a transition array\n");
1580 } else { 1580 } else {
1581 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1581 reinterpret_cast<i::TransitionArray*>(object)->Print();
1582 } 1582 }
1583 } 1583 }
1584 1584
1585 extern void _v8_internal_Print_StackTrace() { 1585 extern void _v8_internal_Print_StackTrace() {
1586 i::Isolate* isolate = i::Isolate::Current(); 1586 i::Isolate* isolate = i::Isolate::Current();
1587 isolate->PrintStack(stdout); 1587 isolate->PrintStack(stdout);
1588 } 1588 }
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