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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 case SYMBOL_TYPE: | 51 case SYMBOL_TYPE: |
52 Symbol::cast(this)->SymbolVerify(); | 52 Symbol::cast(this)->SymbolVerify(); |
53 break; | 53 break; |
54 case MAP_TYPE: | 54 case MAP_TYPE: |
55 Map::cast(this)->MapVerify(); | 55 Map::cast(this)->MapVerify(); |
56 break; | 56 break; |
57 case HEAP_NUMBER_TYPE: | 57 case HEAP_NUMBER_TYPE: |
58 case MUTABLE_HEAP_NUMBER_TYPE: | 58 case MUTABLE_HEAP_NUMBER_TYPE: |
59 HeapNumber::cast(this)->HeapNumberVerify(); | 59 HeapNumber::cast(this)->HeapNumberVerify(); |
60 break; | 60 break; |
| 61 case FLOAT32X4_TYPE: |
| 62 Float32x4::cast(this)->Float32x4Verify(); |
| 63 break; |
61 case FIXED_ARRAY_TYPE: | 64 case FIXED_ARRAY_TYPE: |
62 FixedArray::cast(this)->FixedArrayVerify(); | 65 FixedArray::cast(this)->FixedArrayVerify(); |
63 break; | 66 break; |
64 case FIXED_DOUBLE_ARRAY_TYPE: | 67 case FIXED_DOUBLE_ARRAY_TYPE: |
65 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify(); | 68 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify(); |
66 break; | 69 break; |
67 case CONSTANT_POOL_ARRAY_TYPE: | 70 case CONSTANT_POOL_ARRAY_TYPE: |
68 ConstantPoolArray::cast(this)->ConstantPoolArrayVerify(); | 71 ConstantPoolArray::cast(this)->ConstantPoolArrayVerify(); |
69 break; | 72 break; |
70 case BYTE_ARRAY_TYPE: | 73 case BYTE_ARRAY_TYPE: |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 CHECK(name()->IsUndefined() || name()->IsString()); | 210 CHECK(name()->IsUndefined() || name()->IsString()); |
208 CHECK(flags()->IsSmi()); | 211 CHECK(flags()->IsSmi()); |
209 } | 212 } |
210 | 213 |
211 | 214 |
212 void HeapNumber::HeapNumberVerify() { | 215 void HeapNumber::HeapNumberVerify() { |
213 CHECK(IsHeapNumber() || IsMutableHeapNumber()); | 216 CHECK(IsHeapNumber() || IsMutableHeapNumber()); |
214 } | 217 } |
215 | 218 |
216 | 219 |
| 220 void Float32x4::Float32x4Verify() { CHECK(IsFloat32x4()); } |
| 221 |
| 222 |
217 void ByteArray::ByteArrayVerify() { | 223 void ByteArray::ByteArrayVerify() { |
218 CHECK(IsByteArray()); | 224 CHECK(IsByteArray()); |
219 } | 225 } |
220 | 226 |
221 | 227 |
222 void FreeSpace::FreeSpaceVerify() { | 228 void FreeSpace::FreeSpaceVerify() { |
223 CHECK(IsFreeSpace()); | 229 CHECK(IsFreeSpace()); |
224 } | 230 } |
225 | 231 |
226 | 232 |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 : it.rinfo()->target_object(); | 1288 : it.rinfo()->target_object(); |
1283 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1289 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
1284 } | 1290 } |
1285 } | 1291 } |
1286 | 1292 |
1287 | 1293 |
1288 #endif // DEBUG | 1294 #endif // DEBUG |
1289 | 1295 |
1290 } // namespace internal | 1296 } // namespace internal |
1291 } // namespace v8 | 1297 } // namespace v8 |
OLD | NEW |