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

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

Issue 2650803003: [inspector] change target promise for kDebugWillHandle & kDebugDidHandle (Closed)
Patch Set: added missing guard in asyncTaskCreated 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
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 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 os << "\n"; 1238 os << "\n";
1239 } 1239 }
1240 1240
1241 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint( 1241 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoPrint(
1242 std::ostream& os) { // NOLINT 1242 std::ostream& os) { // NOLINT
1243 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo"); 1243 HeapObject::PrintHeader(os, "PromiseResolveThenableJobInfo");
1244 os << "\n - thenable: " << Brief(thenable()); 1244 os << "\n - thenable: " << Brief(thenable());
1245 os << "\n - then: " << Brief(then()); 1245 os << "\n - then: " << Brief(then());
1246 os << "\n - resolve: " << Brief(resolve()); 1246 os << "\n - resolve: " << Brief(resolve());
1247 os << "\n - reject: " << Brief(reject()); 1247 os << "\n - reject: " << Brief(reject());
1248 os << "\n - debug id: " << debug_id();
1249 os << "\n - context: " << Brief(context()); 1248 os << "\n - context: " << Brief(context());
1250 os << "\n"; 1249 os << "\n";
1251 } 1250 }
1252 1251
1253 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint( 1252 void PromiseReactionJobInfo::PromiseReactionJobInfoPrint(
1254 std::ostream& os) { // NOLINT 1253 std::ostream& os) { // NOLINT
1255 HeapObject::PrintHeader(os, "PromiseReactionJobInfo"); 1254 HeapObject::PrintHeader(os, "PromiseReactionJobInfo");
1256 os << "\n - value: " << Brief(value()); 1255 os << "\n - value: " << Brief(value());
1257 os << "\n - tasks: " << Brief(tasks()); 1256 os << "\n - tasks: " << Brief(tasks());
1258 os << "\n - deferred_promise: " << Brief(deferred_promise()); 1257 os << "\n - deferred_promise: " << Brief(deferred_promise());
1259 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve()); 1258 os << "\n - deferred_on_resolve: " << Brief(deferred_on_resolve());
1260 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject()); 1259 os << "\n - deferred_on_reject: " << Brief(deferred_on_reject());
1261 os << "\n - debug id: " << debug_id();
1262 os << "\n - reaction context: " << Brief(context()); 1260 os << "\n - reaction context: " << Brief(context());
1263 os << "\n"; 1261 os << "\n";
1264 } 1262 }
1265 1263
1266 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT 1264 void ModuleInfoEntry::ModuleInfoEntryPrint(std::ostream& os) { // NOLINT
1267 HeapObject::PrintHeader(os, "ModuleInfoEntry"); 1265 HeapObject::PrintHeader(os, "ModuleInfoEntry");
1268 os << "\n - export_name: " << Brief(export_name()); 1266 os << "\n - export_name: " << Brief(export_name());
1269 os << "\n - local_name: " << Brief(local_name()); 1267 os << "\n - local_name: " << Brief(local_name());
1270 os << "\n - import_name: " << Brief(import_name()); 1268 os << "\n - import_name: " << Brief(import_name());
1271 os << "\n - module_request: " << module_request(); 1269 os << "\n - module_request: " << module_request();
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 printf("Not a transition array\n"); 1724 printf("Not a transition array\n");
1727 } else { 1725 } else {
1728 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1726 reinterpret_cast<i::TransitionArray*>(object)->Print();
1729 } 1727 }
1730 } 1728 }
1731 1729
1732 extern void _v8_internal_Print_StackTrace() { 1730 extern void _v8_internal_Print_StackTrace() {
1733 i::Isolate* isolate = i::Isolate::Current(); 1731 i::Isolate* isolate = i::Isolate::Current();
1734 isolate->PrintStack(stdout); 1732 isolate->PrintStack(stdout);
1735 } 1733 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | src/runtime/runtime-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698