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 2108203002: Implement immutable prototype chains (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: IsImmutableProto 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
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('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 "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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 } 1137 }
1138 1138
1139 1139
1140 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT 1140 void ObjectTemplateInfo::ObjectTemplateInfoPrint(std::ostream& os) { // NOLINT
1141 HeapObject::PrintHeader(os, "ObjectTemplateInfo"); 1141 HeapObject::PrintHeader(os, "ObjectTemplateInfo");
1142 os << "\n - tag: " << Brief(tag()); 1142 os << "\n - tag: " << Brief(tag());
1143 os << "\n - serial_number: " << Brief(serial_number()); 1143 os << "\n - serial_number: " << Brief(serial_number());
1144 os << "\n - property_list: " << Brief(property_list()); 1144 os << "\n - property_list: " << Brief(property_list());
1145 os << "\n - property_accessors: " << Brief(property_accessors()); 1145 os << "\n - property_accessors: " << Brief(property_accessors());
1146 os << "\n - constructor: " << Brief(constructor()); 1146 os << "\n - constructor: " << Brief(constructor());
1147 os << "\n - internal_field_count: " << Brief(internal_field_count()); 1147 os << "\n - internal_field_count: " << internal_field_count();
1148 os << "\n - immutable_proto: " << (immutable_proto() ? "true" : "false");
1148 os << "\n"; 1149 os << "\n";
1149 } 1150 }
1150 1151
1151 1152
1152 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT 1153 void AllocationSite::AllocationSitePrint(std::ostream& os) { // NOLINT
1153 HeapObject::PrintHeader(os, "AllocationSite"); 1154 HeapObject::PrintHeader(os, "AllocationSite");
1154 os << "\n - weak_next: " << Brief(weak_next()); 1155 os << "\n - weak_next: " << Brief(weak_next());
1155 os << "\n - dependent code: " << Brief(dependent_code()); 1156 os << "\n - dependent code: " << Brief(dependent_code());
1156 os << "\n - nested site: " << Brief(nested_site()); 1157 os << "\n - nested site: " << Brief(nested_site());
1157 os << "\n - memento found count: " 1158 os << "\n - memento found count: "
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1391 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1391 Object* transitions = map()->raw_transitions(); 1392 Object* transitions = map()->raw_transitions();
1392 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1393 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1393 if (num_transitions == 0) return; 1394 if (num_transitions == 0) return;
1394 os << "\n - transitions"; 1395 os << "\n - transitions";
1395 TransitionArray::PrintTransitions(os, transitions, false); 1396 TransitionArray::PrintTransitions(os, transitions, false);
1396 } 1397 }
1397 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1398 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1398 } // namespace internal 1399 } // namespace internal
1399 } // namespace v8 1400 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698