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

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

Issue 2108203002: Implement immutable prototype chains (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: simplify Created 4 years, 5 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
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 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 } 1126 }
1127 1127
1128 1128
1129 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT 1129 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT
1130 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); 1130 HeapObject::PrintHeader(os, "ObjectTemplateInfo");
1131 os << "\n - tag: " << Brief(tag()); 1131 os << "\n - tag: " << Brief(tag());
1132 os << "\n - serial_number: " << Brief(serial_number()); 1132 os << "\n - serial_number: " << Brief(serial_number());
1133 os << "\n - property_list: " << Brief(property_list()); 1133 os << "\n - property_list: " << Brief(property_list());
1134 os << "\n - property_accessors: " << Brief(property_accessors()); 1134 os << "\n - property_accessors: " << Brief(property_accessors());
1135 os << "\n - constructor: " << Brief(constructor()); 1135 os << "\n - constructor: " << Brief(constructor());
1136 os << "\n - internal_field_count: " << Brief(internal_field_count()); 1136 os << "\n - internal_field_count: " << internal_field_count();
1137 os << "\n - immutable_proto: " << (immutable_proto() ? "true" : "false");
1137 os << "\n"; 1138 os << "\n";
1138 } 1139 }
1139 1140
1140 1141
1141 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT 1142 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT
1142 HeapObject::PrintHeader(os, "AllocationSite"); 1143 HeapObject::PrintHeader(os, "AllocationSite");
1143 os << "\n - weak_next: " << Brief(weak_next()); 1144 os << "\n - weak_next: " << Brief(weak_next());
1144 os << "\n - dependent code: " << Brief(dependent_code()); 1145 os << "\n - dependent code: " << Brief(dependent_code());
1145 os << "\n - nested site: " << Brief(nested_site()); 1146 os << "\n - nested site: " << Brief(nested_site());
1146 os << "\n - memento found count: " 1147 os << "\n - memento found count: "
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1380 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1380 Object* transitions = map()->raw_transitions(); 1381 Object* transitions = map()->raw_transitions();
1381 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1382 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1382 if (num_transitions == 0) return; 1383 if (num_transitions == 0) return;
1383 os << "\n - transitions"; 1384 os << "\n - transitions";
1384 TransitionArray::PrintTransitions(os, transitions, false); 1385 TransitionArray::PrintTransitions(os, transitions, false);
1385 } 1386 }
1386 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1387 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1387 } // namespace internal 1388 } // namespace internal
1388 } // namespace v8 1389 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698