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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void HeapObject::VerifyHeapPointer(Object* p) { | 200 void HeapObject::VerifyHeapPointer(Object* p) { |
201 CHECK(p->IsHeapObject()); | 201 CHECK(p->IsHeapObject()); |
202 HeapObject* ho = HeapObject::cast(p); | 202 HeapObject* ho = HeapObject::cast(p); |
203 CHECK(ho->GetHeap()->Contains(ho)); | 203 CHECK(ho->GetHeap()->Contains(ho)); |
204 } | 204 } |
205 | 205 |
206 | 206 |
207 void Symbol::SymbolVerify() { | 207 void Symbol::SymbolVerify() { |
208 CHECK(IsSymbol()); | 208 CHECK(IsSymbol()); |
209 CHECK(HasHashCode()); | 209 CHECK(HasHashCode()); |
210 CHECK_GT(Hash(), 0); | 210 CHECK_GT(Hash(), 0u); |
211 CHECK(name()->IsUndefined() || name()->IsString()); | 211 CHECK(name()->IsUndefined() || name()->IsString()); |
212 CHECK(flags()->IsSmi()); | 212 CHECK(flags()->IsSmi()); |
213 } | 213 } |
214 | 214 |
215 | 215 |
216 void HeapNumber::HeapNumberVerify() { | 216 void HeapNumber::HeapNumberVerify() { |
217 CHECK(IsHeapNumber() || IsMutableHeapNumber()); | 217 CHECK(IsHeapNumber() || IsMutableHeapNumber()); |
218 } | 218 } |
219 | 219 |
220 | 220 |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 while (map != heap->roots_array_start()[i++]) { | 1250 while (map != heap->roots_array_start()[i++]) { |
1251 CHECK_LT(i, Heap::kStrongRootListLength); | 1251 CHECK_LT(i, Heap::kStrongRootListLength); |
1252 } | 1252 } |
1253 } | 1253 } |
1254 } | 1254 } |
1255 | 1255 |
1256 | 1256 |
1257 #endif // DEBUG | 1257 #endif // DEBUG |
1258 | 1258 |
1259 } } // namespace v8::internal | 1259 } } // namespace v8::internal |
OLD | NEW |