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/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 switch (instance_type) { | 60 switch (instance_type) { |
61 case SYMBOL_TYPE: | 61 case SYMBOL_TYPE: |
62 Symbol::cast(this)->SymbolPrint(os); | 62 Symbol::cast(this)->SymbolPrint(os); |
63 break; | 63 break; |
64 case MAP_TYPE: | 64 case MAP_TYPE: |
65 Map::cast(this)->MapPrint(os); | 65 Map::cast(this)->MapPrint(os); |
66 break; | 66 break; |
67 case HEAP_NUMBER_TYPE: | 67 case HEAP_NUMBER_TYPE: |
68 HeapNumber::cast(this)->HeapNumberPrint(os); | 68 HeapNumber::cast(this)->HeapNumberPrint(os); |
| 69 os << "\n"; |
69 break; | 70 break; |
70 case MUTABLE_HEAP_NUMBER_TYPE: | 71 case MUTABLE_HEAP_NUMBER_TYPE: |
71 os << "<mutable "; | 72 os << "<mutable "; |
72 HeapNumber::cast(this)->HeapNumberPrint(os); | 73 HeapNumber::cast(this)->HeapNumberPrint(os); |
73 os << ">"; | 74 os << ">\n"; |
74 break; | 75 break; |
75 case SIMD128_VALUE_TYPE: | 76 case SIMD128_VALUE_TYPE: |
76 Simd128Value::cast(this)->Simd128ValuePrint(os); | 77 Simd128Value::cast(this)->Simd128ValuePrint(os); |
77 break; | 78 break; |
78 case FIXED_DOUBLE_ARRAY_TYPE: | 79 case FIXED_DOUBLE_ARRAY_TYPE: |
79 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(os); | 80 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(os); |
80 break; | 81 break; |
81 case FIXED_ARRAY_TYPE: | 82 case FIXED_ARRAY_TYPE: |
82 FixedArray::cast(this)->FixedArrayPrint(os); | 83 FixedArray::cast(this)->FixedArrayPrint(os); |
83 break; | 84 break; |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 printf("Not a transition array\n"); | 1582 printf("Not a transition array\n"); |
1582 } else { | 1583 } else { |
1583 reinterpret_cast<i::TransitionArray*>(object)->Print(); | 1584 reinterpret_cast<i::TransitionArray*>(object)->Print(); |
1584 } | 1585 } |
1585 } | 1586 } |
1586 | 1587 |
1587 extern void _v8_internal_Print_StackTrace() { | 1588 extern void _v8_internal_Print_StackTrace() { |
1588 i::Isolate* isolate = i::Isolate::Current(); | 1589 i::Isolate* isolate = i::Isolate::Current(); |
1589 isolate->PrintStack(stdout); | 1590 isolate->PrintStack(stdout); |
1590 } | 1591 } |
OLD | NEW |