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

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

Issue 2351113004: [modules] Expand API to allow linking and use it in d8 (Closed)
Patch Set: Use StrictEquals, remove check for bad instantiation behavior 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') | test/cctest/BUILD.gn » ('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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 HeapObject::PrintHeader(os, "Box"); 1153 HeapObject::PrintHeader(os, "Box");
1154 os << "\n - value: " << Brief(value()); 1154 os << "\n - value: " << Brief(value());
1155 os << "\n"; 1155 os << "\n";
1156 } 1156 }
1157 1157
1158 void Module::ModulePrint(std::ostream& os) { // NOLINT 1158 void Module::ModulePrint(std::ostream& os) { // NOLINT
1159 HeapObject::PrintHeader(os, "Module"); 1159 HeapObject::PrintHeader(os, "Module");
1160 os << "\n - code: " << Brief(code()); 1160 os << "\n - code: " << Brief(code());
1161 os << "\n - exports: " << Brief(exports()); 1161 os << "\n - exports: " << Brief(exports());
1162 os << "\n - requested_modules: " << Brief(requested_modules()); 1162 os << "\n - requested_modules: " << Brief(requested_modules());
1163 os << "\n - evaluated: " << evaluated();
1163 os << "\n"; 1164 os << "\n";
1164 } 1165 }
1165 1166
1166 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT 1167 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
1167 HeapObject::PrintHeader(os, "PrototypeInfo"); 1168 HeapObject::PrintHeader(os, "PrototypeInfo");
1168 os << "\n - prototype users: " << Brief(prototype_users()); 1169 os << "\n - prototype users: " << Brief(prototype_users());
1169 os << "\n - registry slot: " << registry_slot(); 1170 os << "\n - registry slot: " << registry_slot();
1170 os << "\n - validity cell: " << Brief(validity_cell()); 1171 os << "\n - validity cell: " << Brief(validity_cell());
1171 os << "\n"; 1172 os << "\n";
1172 } 1173 }
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 printf("Not a transition array\n"); 1535 printf("Not a transition array\n");
1535 } else { 1536 } else {
1536 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1537 reinterpret_cast<i::TransitionArray*>(object)->Print();
1537 } 1538 }
1538 } 1539 }
1539 1540
1540 extern void _v8_internal_Print_StackTrace() { 1541 extern void _v8_internal_Print_StackTrace() {
1541 i::Isolate* isolate = i::Isolate::Current(); 1542 i::Isolate* isolate = i::Isolate::Current();
1542 isolate->PrintStack(stdout); 1543 isolate->PrintStack(stdout);
1543 } 1544 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698