OLD | NEW |
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 break; | 162 break; |
163 case JS_MESSAGE_OBJECT_TYPE: | 163 case JS_MESSAGE_OBJECT_TYPE: |
164 JSMessageObject::cast(this)->JSMessageObjectPrint(os); | 164 JSMessageObject::cast(this)->JSMessageObjectPrint(os); |
165 break; | 165 break; |
166 case CELL_TYPE: | 166 case CELL_TYPE: |
167 Cell::cast(this)->CellPrint(os); | 167 Cell::cast(this)->CellPrint(os); |
168 break; | 168 break; |
169 case PROPERTY_CELL_TYPE: | 169 case PROPERTY_CELL_TYPE: |
170 PropertyCell::cast(this)->PropertyCellPrint(os); | 170 PropertyCell::cast(this)->PropertyCellPrint(os); |
171 break; | 171 break; |
| 172 case WEAK_CELL_TYPE: |
| 173 WeakCell::cast(this)->WeakCellPrint(os); |
| 174 break; |
172 case JS_ARRAY_BUFFER_TYPE: | 175 case JS_ARRAY_BUFFER_TYPE: |
173 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); | 176 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); |
174 break; | 177 break; |
175 case JS_TYPED_ARRAY_TYPE: | 178 case JS_TYPED_ARRAY_TYPE: |
176 JSTypedArray::cast(this)->JSTypedArrayPrint(os); | 179 JSTypedArray::cast(this)->JSTypedArrayPrint(os); |
177 break; | 180 break; |
178 case JS_DATA_VIEW_TYPE: | 181 case JS_DATA_VIEW_TYPE: |
179 JSDataView::cast(this)->JSDataViewPrint(os); | 182 JSDataView::cast(this)->JSDataViewPrint(os); |
180 break; | 183 break; |
181 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 184 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 void Cell::CellPrint(std::ostream& os) { // NOLINT | 858 void Cell::CellPrint(std::ostream& os) { // NOLINT |
856 HeapObject::PrintHeader(os, "Cell"); | 859 HeapObject::PrintHeader(os, "Cell"); |
857 } | 860 } |
858 | 861 |
859 | 862 |
860 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT | 863 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT |
861 HeapObject::PrintHeader(os, "PropertyCell"); | 864 HeapObject::PrintHeader(os, "PropertyCell"); |
862 } | 865 } |
863 | 866 |
864 | 867 |
| 868 void WeakCell::WeakCellPrint(std::ostream& os) { // NOLINT |
| 869 HeapObject::PrintHeader(os, "WeakCell"); |
| 870 } |
| 871 |
| 872 |
865 void Code::CodePrint(std::ostream& os) { // NOLINT | 873 void Code::CodePrint(std::ostream& os) { // NOLINT |
866 HeapObject::PrintHeader(os, "Code"); | 874 HeapObject::PrintHeader(os, "Code"); |
867 #ifdef ENABLE_DISASSEMBLER | 875 #ifdef ENABLE_DISASSEMBLER |
868 if (FLAG_use_verbose_printer) { | 876 if (FLAG_use_verbose_printer) { |
869 Disassemble(NULL, os); | 877 Disassemble(NULL, os); |
870 } | 878 } |
871 #endif | 879 #endif |
872 } | 880 } |
873 | 881 |
874 | 882 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 } | 1117 } |
1110 } | 1118 } |
1111 os << "\n"; | 1119 os << "\n"; |
1112 } | 1120 } |
1113 | 1121 |
1114 | 1122 |
1115 #endif // OBJECT_PRINT | 1123 #endif // OBJECT_PRINT |
1116 | 1124 |
1117 | 1125 |
1118 } } // namespace v8::internal | 1126 } } // namespace v8::internal |
OLD | NEW |