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

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

Issue 771033003: Revert 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
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('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 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 }
855 } 850 }
856 851
857 852
858 void Code::CodePrint(std::ostream& os) { // NOLINT 853 void Code::CodePrint(std::ostream& os) { // NOLINT
859 HeapObject::PrintHeader(os, "Code"); 854 HeapObject::PrintHeader(os, "Code");
860 #ifdef ENABLE_DISASSEMBLER 855 #ifdef ENABLE_DISASSEMBLER
861 if (FLAG_use_verbose_printer) { 856 if (FLAG_use_verbose_printer) {
862 Disassemble(NULL, os); 857 Disassemble(NULL, os);
863 } 858 }
864 #endif 859 #endif
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 return SNPrintF(str, "#<%s>", s->PrivateSymbolToName()); 1194 return SNPrintF(str, "#<%s>", s->PrivateSymbolToName());
1200 } else { 1195 } else {
1201 return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get()); 1196 return SNPrintF(str, "<%s>", String::cast(s->name())->ToCString().get());
1202 } 1197 }
1203 } 1198 }
1204 } 1199 }
1205 1200
1206 1201
1207 #endif // TRACE_MAPS 1202 #endif // TRACE_MAPS
1208 } } // namespace v8::internal 1203 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698