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

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

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: added missing test Created 3 years, 10 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') | test/inspector/debugger/es6-module-requested.js » ('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 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 os << "\n - beg_pos: " << beg_pos(); 1261 os << "\n - beg_pos: " << beg_pos();
1262 os << "\n - end_pos: " << end_pos(); 1262 os << "\n - end_pos: " << end_pos();
1263 os << "\n"; 1263 os << "\n";
1264 } 1264 }
1265 1265
1266 void Module::ModulePrint(std::ostream& os) { // NOLINT 1266 void Module::ModulePrint(std::ostream& os) { // NOLINT
1267 HeapObject::PrintHeader(os, "Module"); 1267 HeapObject::PrintHeader(os, "Module");
1268 os << "\n - code: " << Brief(code()); 1268 os << "\n - code: " << Brief(code());
1269 os << "\n - exports: " << Brief(exports()); 1269 os << "\n - exports: " << Brief(exports());
1270 os << "\n - requested_modules: " << Brief(requested_modules()); 1270 os << "\n - requested_modules: " << Brief(requested_modules());
1271 os << "\n - script: " << Brief(script());
1271 os << "\n - evaluated: " << evaluated(); 1272 os << "\n - evaluated: " << evaluated();
1272 os << "\n"; 1273 os << "\n";
1273 } 1274 }
1274 1275
1275 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT 1276 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT
1276 JSObjectPrintHeader(os, this, "JSModuleNamespace"); 1277 JSObjectPrintHeader(os, this, "JSModuleNamespace");
1277 os << "\n - module: " << Brief(module()); 1278 os << "\n - module: " << Brief(module());
1278 JSObjectPrintBody(os, this); 1279 JSObjectPrintBody(os, this);
1279 } 1280 }
1280 1281
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 printf("Not a transition array\n"); 1715 printf("Not a transition array\n");
1715 } else { 1716 } else {
1716 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1717 reinterpret_cast<i::TransitionArray*>(object)->Print();
1717 } 1718 }
1718 } 1719 }
1719 1720
1720 extern void _v8_internal_Print_StackTrace() { 1721 extern void _v8_internal_Print_StackTrace() {
1721 i::Isolate* isolate = i::Isolate::Current(); 1722 i::Isolate* isolate = i::Isolate::Current();
1722 isolate->PrintStack(stdout); 1723 isolate->PrintStack(stdout);
1723 } 1724 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/inspector/debugger/es6-module-requested.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698