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

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

Issue 893073006: Add map-based read barrier to WeakCell Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge 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/type-feedback-vector.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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT 825 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT
826 HeapObject::PrintHeader(os, "PropertyCell"); 826 HeapObject::PrintHeader(os, "PropertyCell");
827 } 827 }
828 828
829 829
830 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT 830 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT
831 HeapObject::PrintHeader(os, "WeakCell"); 831 HeapObject::PrintHeader(os, "WeakCell");
832 if (cleared()) { 832 if (cleared()) {
833 os << "\n - cleared"; 833 os << "\n - cleared";
834 } else { 834 } else {
835 os << "\n - value: " << Brief(value()); 835 os << "\n - value: " << Brief(value(GetHeap()));
836 } 836 }
837 } 837 }
838 838
839 839
840 void Code::CodePrint(std::ostream& os) { // NOLINT 840 void Code::CodePrint(std::ostream& os) { // NOLINT
841 HeapObject::PrintHeader(os, "Code"); 841 HeapObject::PrintHeader(os, "Code");
842 #ifdef ENABLE_DISASSEMBLER 842 #ifdef ENABLE_DISASSEMBLER
843 if (FLAG_use_verbose_printer) { 843 if (FLAG_use_verbose_printer) {
844 Disassemble(NULL, os); 844 Disassemble(NULL, os);
845 } 845 }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 } 1184 }
1185 } 1185 }
1186 1186
1187 1187
1188 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1188 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1189 if (!map()->HasTransitionArray()) return; 1189 if (!map()->HasTransitionArray()) return;
1190 map()->transitions()->PrintTransitions(os, false); 1190 map()->transitions()->PrintTransitions(os, false);
1191 } 1191 }
1192 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1192 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1193 } } // namespace v8::internal 1193 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698