| 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 BYTE_ARRAY_TYPE: | 70 case BYTE_ARRAY_TYPE: |
| 68 ByteArray::cast(this)->ByteArrayVerify(); | 71 ByteArray::cast(this)->ByteArrayVerify(); |
| 69 break; | 72 break; |
| 70 case FREE_SPACE_TYPE: | 73 case FREE_SPACE_TYPE: |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 CHECK(name()->IsUndefined() || name()->IsString()); | 207 CHECK(name()->IsUndefined() || name()->IsString()); |
| 205 CHECK(flags()->IsSmi()); | 208 CHECK(flags()->IsSmi()); |
| 206 } | 209 } |
| 207 | 210 |
| 208 | 211 |
| 209 void HeapNumber::HeapNumberVerify() { | 212 void HeapNumber::HeapNumberVerify() { |
| 210 CHECK(IsHeapNumber() || IsMutableHeapNumber()); | 213 CHECK(IsHeapNumber() || IsMutableHeapNumber()); |
| 211 } | 214 } |
| 212 | 215 |
| 213 | 216 |
| 217 void Float32x4::Float32x4Verify() { CHECK(IsFloat32x4()); } |
| 218 |
| 219 |
| 214 void ByteArray::ByteArrayVerify() { | 220 void ByteArray::ByteArrayVerify() { |
| 215 CHECK(IsByteArray()); | 221 CHECK(IsByteArray()); |
| 216 } | 222 } |
| 217 | 223 |
| 218 | 224 |
| 219 void FreeSpace::FreeSpaceVerify() { | 225 void FreeSpace::FreeSpaceVerify() { |
| 220 CHECK(IsFreeSpace()); | 226 CHECK(IsFreeSpace()); |
| 221 } | 227 } |
| 222 | 228 |
| 223 | 229 |
| (...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 : it.rinfo()->target_object(); | 1271 : it.rinfo()->target_object(); |
| 1266 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1272 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
| 1267 } | 1273 } |
| 1268 } | 1274 } |
| 1269 | 1275 |
| 1270 | 1276 |
| 1271 #endif // DEBUG | 1277 #endif // DEBUG |
| 1272 | 1278 |
| 1273 } // namespace internal | 1279 } // namespace internal |
| 1274 } // namespace v8 | 1280 } // namespace v8 |
| OLD | NEW |