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

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

Issue 2347933002: [modules] Introduce v8::Module to the API and return it from CompileModule (Closed)
Patch Set: Less maybe 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
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | 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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 1140
1141 1141
1142 void Box::BoxPrint(std::ostream& os) { // NOLINT 1142 void Box::BoxPrint(std::ostream& os) { // NOLINT
1143 HeapObject::PrintHeader(os, "Box"); 1143 HeapObject::PrintHeader(os, "Box");
1144 os << "\n - value: " << Brief(value()); 1144 os << "\n - value: " << Brief(value());
1145 os << "\n"; 1145 os << "\n";
1146 } 1146 }
1147 1147
1148 void Module::ModulePrint(std::ostream& os) { // NOLINT 1148 void Module::ModulePrint(std::ostream& os) { // NOLINT
1149 HeapObject::PrintHeader(os, "Module"); 1149 HeapObject::PrintHeader(os, "Module");
1150 os << "\n - code: " << Brief(code());
1150 os << "\n - exports: " << Brief(exports()); 1151 os << "\n - exports: " << Brief(exports());
1151 os << "\n"; 1152 os << "\n";
1152 } 1153 }
1153 1154
1154 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT 1155 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
1155 HeapObject::PrintHeader(os, "PrototypeInfo"); 1156 HeapObject::PrintHeader(os, "PrototypeInfo");
1156 os << "\n - prototype users: " << Brief(prototype_users()); 1157 os << "\n - prototype users: " << Brief(prototype_users());
1157 os << "\n - registry slot: " << registry_slot(); 1158 os << "\n - registry slot: " << registry_slot();
1158 os << "\n - validity cell: " << Brief(validity_cell()); 1159 os << "\n - validity cell: " << Brief(validity_cell());
1159 os << "\n"; 1160 os << "\n";
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 printf("Not a transition array\n"); 1523 printf("Not a transition array\n");
1523 } else { 1524 } else {
1524 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1525 reinterpret_cast<i::TransitionArray*>(object)->Print();
1525 } 1526 }
1526 } 1527 }
1527 1528
1528 extern void _v8_internal_Print_StackTrace() { 1529 extern void _v8_internal_Print_StackTrace() {
1529 i::Isolate* isolate = i::Isolate::Current(); 1530 i::Isolate* isolate = i::Isolate::Current();
1530 isolate->PrintStack(stdout); 1531 isolate->PrintStack(stdout);
1531 } 1532 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698