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 1474353002: Remove easy to remove calls to Isolate::Current() from api.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update Created 5 years 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 "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); 1074 HeapObject::PrintHeader(os, "ObjectTemplateInfo");
1075 os << " - tag: " << Brief(tag()); 1075 os << " - tag: " << Brief(tag());
1076 os << "\n - property_list: " << Brief(property_list()); 1076 os << "\n - property_list: " << Brief(property_list());
1077 os << "\n - property_accessors: " << Brief(property_accessors()); 1077 os << "\n - property_accessors: " << Brief(property_accessors());
1078 os << "\n - constructor: " << Brief(constructor()); 1078 os << "\n - constructor: " << Brief(constructor());
1079 os << "\n - internal_field_count: " << Brief(internal_field_count()); 1079 os << "\n - internal_field_count: " << Brief(internal_field_count());
1080 os << "\n"; 1080 os << "\n";
1081 } 1081 }
1082 1082
1083 1083
1084 void TypeSwitchInfo::TypeSwitchInfoPrint(std::ostream& os) { // NOLINT
1085 HeapObject::PrintHeader(os, "TypeSwitchInfo");
1086 os << "\n - types: " << Brief(types());
1087 os << "\n";
1088 }
1089
1090
1091 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT 1084 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT
1092 HeapObject::PrintHeader(os, "AllocationSite"); 1085 HeapObject::PrintHeader(os, "AllocationSite");
1093 os << " - weak_next: " << Brief(weak_next()); 1086 os << " - weak_next: " << Brief(weak_next());
1094 os << "\n - dependent code: " << Brief(dependent_code()); 1087 os << "\n - dependent code: " << Brief(dependent_code());
1095 os << "\n - nested site: " << Brief(nested_site()); 1088 os << "\n - nested site: " << Brief(nested_site());
1096 os << "\n - memento found count: " 1089 os << "\n - memento found count: "
1097 << Brief(Smi::FromInt(memento_found_count())); 1090 << Brief(Smi::FromInt(memento_found_count()));
1098 os << "\n - memento create count: " 1091 os << "\n - memento create count: "
1099 << Brief(Smi::FromInt(memento_create_count())); 1092 << Brief(Smi::FromInt(memento_create_count()));
1100 os << "\n - pretenure decision: " 1093 os << "\n - pretenure decision: "
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1323 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1331 Object* transitions = map()->raw_transitions(); 1324 Object* transitions = map()->raw_transitions();
1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1325 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1333 if (num_transitions == 0) return; 1326 if (num_transitions == 0) return;
1334 os << "\n - transitions"; 1327 os << "\n - transitions";
1335 TransitionArray::PrintTransitions(os, transitions, false); 1328 TransitionArray::PrintTransitions(os, transitions, false);
1336 } 1329 }
1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1330 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1338 } // namespace internal 1331 } // namespace internal
1339 } // namespace v8 1332 } // namespace v8
OLDNEW
« include/v8.h ('K') | « src/objects-inl.h ('k') | src/profiler/heap-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698