| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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: | 172 case WEAK_CELL_TYPE: |
| 173 WeakCell::cast(this)->WeakCellPrint(os); | 173 WeakCell::cast(this)->WeakCellPrint(os); |
| 174 break; | 174 break; |
| 175 case JS_ARRAY_BUFFER_TYPE: | 175 case JS_ARRAY_BUFFER_TYPE: |
| 176 case JS_SHARED_ARRAY_BUFFER_TYPE: |
| 176 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); | 177 JSArrayBuffer::cast(this)->JSArrayBufferPrint(os); |
| 177 break; | 178 break; |
| 178 case JS_TYPED_ARRAY_TYPE: | 179 case JS_TYPED_ARRAY_TYPE: |
| 180 case JS_SHARED_TYPED_ARRAY_TYPE: |
| 179 JSTypedArray::cast(this)->JSTypedArrayPrint(os); | 181 JSTypedArray::cast(this)->JSTypedArrayPrint(os); |
| 180 break; | 182 break; |
| 181 case JS_DATA_VIEW_TYPE: | 183 case JS_DATA_VIEW_TYPE: |
| 182 JSDataView::cast(this)->JSDataViewPrint(os); | 184 JSDataView::cast(this)->JSDataViewPrint(os); |
| 183 break; | 185 break; |
| 184 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 186 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
| 185 case NAME##_TYPE: \ | 187 case NAME##_TYPE: \ |
| 186 Name::cast(this)->Name##Print(os); \ | 188 Name::cast(this)->Name##Print(os); \ |
| 187 break; | 189 break; |
| 188 STRUCT_LIST(MAKE_STRUCT_CASE) | 190 STRUCT_LIST(MAKE_STRUCT_CASE) |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 os << " -> " << Brief(target) << "\n"; | 1207 os << " -> " << Brief(target) << "\n"; |
| 1206 } | 1208 } |
| 1207 } | 1209 } |
| 1208 | 1210 |
| 1209 | 1211 |
| 1210 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1212 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1211 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1213 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1212 } | 1214 } |
| 1213 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1215 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1214 } } // namespace v8::internal | 1216 } } // namespace v8::internal |
| OLD | NEW |