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

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

Issue 950283002: Move Maps' back pointers from "transitions" to "constructor" field (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix stupidity on arm64 Created 5 years, 10 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') | src/runtime/runtime-classes.cc » ('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/v8.h" 5 #include "src/v8.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/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "") 429 os << "\n - instance descriptors " << (owns_descriptors() ? "(own) " : "")
430 << "#" << NumberOfOwnDescriptors() << ": " 430 << "#" << NumberOfOwnDescriptors() << ": "
431 << Brief(instance_descriptors()); 431 << Brief(instance_descriptors());
432 if (FLAG_unbox_double_fields) { 432 if (FLAG_unbox_double_fields) {
433 os << "\n - layout descriptor: " << Brief(layout_descriptor()); 433 os << "\n - layout descriptor: " << Brief(layout_descriptor());
434 } 434 }
435 if (HasTransitionArray()) { 435 if (HasTransitionArray()) {
436 os << "\n - transitions: " << Brief(transitions()); 436 os << "\n - transitions: " << Brief(transitions());
437 } 437 }
438 os << "\n - prototype: " << Brief(prototype()); 438 os << "\n - prototype: " << Brief(prototype());
439 os << "\n - constructor: " << Brief(constructor()); 439 os << "\n - constructor: " << Brief(GetConstructor());
440 os << "\n - code cache: " << Brief(code_cache()); 440 os << "\n - code cache: " << Brief(code_cache());
441 os << "\n - dependent code: " << Brief(dependent_code()); 441 os << "\n - dependent code: " << Brief(dependent_code());
442 os << "\n"; 442 os << "\n";
443 } 443 }
444 444
445 445
446 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT 446 void CodeCache::CodeCachePrint(std::ostream& os) { // NOLINT
447 HeapObject::PrintHeader(os, "CodeCache"); 447 HeapObject::PrintHeader(os, "CodeCache");
448 os << "\n - default_cache: " << Brief(default_cache()); 448 os << "\n - default_cache: " << Brief(default_cache());
449 os << "\n - normal_type_cache: " << Brief(normal_type_cache()); 449 os << "\n - normal_type_cache: " << Brief(normal_type_cache());
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 } 1185 }
1186 } 1186 }
1187 1187
1188 1188
1189 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1189 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1190 if (!map()->HasTransitionArray()) return; 1190 if (!map()->HasTransitionArray()) return;
1191 map()->transitions()->PrintTransitions(os, false); 1191 map()->transitions()->PrintTransitions(os, false);
1192 } 1192 }
1193 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1193 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1194 } } // namespace v8::internal 1194 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698