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

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

Issue 2625093005: [modules] Define @@toStringTag on namespace object as a field. (Closed)
Patch Set: 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
« 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/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 void Module::ModulePrint(std::ostream& os) { // NOLINT 1282 void Module::ModulePrint(std::ostream& os) { // NOLINT
1283 HeapObject::PrintHeader(os, "Module"); 1283 HeapObject::PrintHeader(os, "Module");
1284 os << "\n - code: " << Brief(code()); 1284 os << "\n - code: " << Brief(code());
1285 os << "\n - exports: " << Brief(exports()); 1285 os << "\n - exports: " << Brief(exports());
1286 os << "\n - requested_modules: " << Brief(requested_modules()); 1286 os << "\n - requested_modules: " << Brief(requested_modules());
1287 os << "\n - evaluated: " << evaluated(); 1287 os << "\n - evaluated: " << evaluated();
1288 os << "\n"; 1288 os << "\n";
1289 } 1289 }
1290 1290
1291 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT 1291 void JSModuleNamespace::JSModuleNamespacePrint(std::ostream& os) { // NOLINT
1292 HeapObject::PrintHeader(os, "JSModuleNamespace"); 1292 JSObjectPrintHeader(os, this, "JSModuleNamespace");
1293 os << "\n - module: " << Brief(module()); 1293 os << "\n - module: " << Brief(module());
1294 os << "\n"; 1294 JSObjectPrintBody(os, this);
1295 } 1295 }
1296 1296
1297 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT 1297 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT
1298 HeapObject::PrintHeader(os, "PrototypeInfo"); 1298 HeapObject::PrintHeader(os, "PrototypeInfo");
1299 os << "\n - weak cell: " << Brief(weak_cell()); 1299 os << "\n - weak cell: " << Brief(weak_cell());
1300 os << "\n - prototype users: " << Brief(prototype_users()); 1300 os << "\n - prototype users: " << Brief(prototype_users());
1301 os << "\n - registry slot: " << registry_slot(); 1301 os << "\n - registry slot: " << registry_slot();
1302 os << "\n - validity cell: " << Brief(validity_cell()); 1302 os << "\n - validity cell: " << Brief(validity_cell());
1303 os << "\n - object create map: " << Brief(object_create_map()); 1303 os << "\n - object create map: " << Brief(object_create_map());
1304 os << "\n"; 1304 os << "\n";
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 printf("Not a transition array\n"); 1709 printf("Not a transition array\n");
1710 } else { 1710 } else {
1711 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1711 reinterpret_cast<i::TransitionArray*>(object)->Print();
1712 } 1712 }
1713 } 1713 }
1714 1714
1715 extern void _v8_internal_Print_StackTrace() { 1715 extern void _v8_internal_Print_StackTrace() {
1716 i::Isolate* isolate = i::Isolate::Current(); 1716 i::Isolate* isolate = i::Isolate::Current();
1717 isolate->PrintStack(stdout); 1717 isolate->PrintStack(stdout);
1718 } 1718 }
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