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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 | 41 |
42 void HeapObject::HeapObjectVerify() { | 42 void HeapObject::HeapObjectVerify() { |
43 InstanceType instance_type = map()->instance_type(); | 43 InstanceType instance_type = map()->instance_type(); |
44 | 44 |
45 if (instance_type < FIRST_NONSTRING_TYPE) { | 45 if (instance_type < FIRST_NONSTRING_TYPE) { |
46 String::cast(this)->StringVerify(); | 46 String::cast(this)->StringVerify(); |
47 return; | 47 return; |
48 } | 48 } |
49 | 49 |
| 50 // TODO(yangguo): Use this check once crbug/436911 has been fixed. |
| 51 // DCHECK(!NeedsToEnsureDoubleAlignment() || |
| 52 // IsAligned(OffsetFrom(address()), kDoubleAlignment)); |
| 53 |
50 switch (instance_type) { | 54 switch (instance_type) { |
51 case SYMBOL_TYPE: | 55 case SYMBOL_TYPE: |
52 Symbol::cast(this)->SymbolVerify(); | 56 Symbol::cast(this)->SymbolVerify(); |
53 break; | 57 break; |
54 case MAP_TYPE: | 58 case MAP_TYPE: |
55 Map::cast(this)->MapVerify(); | 59 Map::cast(this)->MapVerify(); |
56 break; | 60 break; |
57 case HEAP_NUMBER_TYPE: | 61 case HEAP_NUMBER_TYPE: |
58 case MUTABLE_HEAP_NUMBER_TYPE: | 62 case MUTABLE_HEAP_NUMBER_TYPE: |
59 HeapNumber::cast(this)->HeapNumberVerify(); | 63 HeapNumber::cast(this)->HeapNumberVerify(); |
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 while (map != heap->roots_array_start()[i++]) { | 1262 while (map != heap->roots_array_start()[i++]) { |
1259 CHECK_LT(i, Heap::kStrongRootListLength); | 1263 CHECK_LT(i, Heap::kStrongRootListLength); |
1260 } | 1264 } |
1261 } | 1265 } |
1262 } | 1266 } |
1263 | 1267 |
1264 | 1268 |
1265 #endif // DEBUG | 1269 #endif // DEBUG |
1266 | 1270 |
1267 } } // namespace v8::internal | 1271 } } // namespace v8::internal |
OLD | NEW |