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

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

Issue 764003003: Reland parts of 'Use weak cells in map checks in polymorphic ICs' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 } 840 }
841 841
842 842
843 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT 843 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT
844 HeapObject::PrintHeader(os, "PropertyCell"); 844 HeapObject::PrintHeader(os, "PropertyCell");
845 } 845 }
846 846
847 847
848 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT 848 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT
849 HeapObject::PrintHeader(os, "WeakCell"); 849 HeapObject::PrintHeader(os, "WeakCell");
850 if (cleared()) {
851 os << "\n - cleared";
852 } else {
853 os << "\n - value: " << Brief(value());
854 }
850 } 855 }
851 856
852 857
853 void Code::CodePrint(std::ostream& os) { // NOLINT 858 void Code::CodePrint(std::ostream& os) { // NOLINT
854 HeapObject::PrintHeader(os, "Code"); 859 HeapObject::PrintHeader(os, "Code");
855 #ifdef ENABLE_DISASSEMBLER 860 #ifdef ENABLE_DISASSEMBLER
856 if (FLAG_use_verbose_printer) { 861 if (FLAG_use_verbose_printer) {
857 Disassemble(NULL, os); 862 Disassemble(NULL, os);
858 } 863 }
859 #endif 864 #endif
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 return SNPrintF(str, "#<%s>", s->PrivateSymbolToName()); 1199 return SNPrintF(str, "#<%s>", s->PrivateSymbolToName());
1195 } else { 1200 } else {
1196 return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get()); 1201 return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get());
1197 } 1202 }
1198 } 1203 }
1199 } 1204 }
1200 1205
1201 1206
1202 #endif // TRACE_MAPS 1207 #endif // TRACE_MAPS
1203 } } // namespace v8::internal 1208 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698