| 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 "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/disasm.h" | 8 #include "src/disasm.h" |
| 9 #include "src/disassembler.h" | 9 #include "src/disassembler.h" |
| 10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 void HeapObject::VerifyHeapPointer(Object* p) { | 203 void HeapObject::VerifyHeapPointer(Object* p) { |
| 204 CHECK(p->IsHeapObject()); | 204 CHECK(p->IsHeapObject()); |
| 205 HeapObject* ho = HeapObject::cast(p); | 205 HeapObject* ho = HeapObject::cast(p); |
| 206 CHECK(ho->GetHeap()->Contains(ho)); | 206 CHECK(ho->GetHeap()->Contains(ho)); |
| 207 } | 207 } |
| 208 | 208 |
| 209 | 209 |
| 210 void Symbol::SymbolVerify() { | 210 void Symbol::SymbolVerify() { |
| 211 CHECK(IsSymbol()); | 211 CHECK(IsSymbol()); |
| 212 CHECK(HasHashCode()); | 212 CHECK(HasHashCode()); |
| 213 CHECK(GetHeap()->hidden_properties_symbol() == this || Hash() > 0u); | 213 CHECK(Hash() > 0u); |
| 214 CHECK(name()->IsUndefined() || name()->IsString()); | 214 CHECK(name()->IsUndefined() || name()->IsString()); |
| 215 } | 215 } |
| 216 | 216 |
| 217 | 217 |
| 218 void HeapNumber::HeapNumberVerify() { | 218 void HeapNumber::HeapNumberVerify() { |
| 219 CHECK(IsHeapNumber() || IsMutableHeapNumber()); | 219 CHECK(IsHeapNumber() || IsMutableHeapNumber()); |
| 220 } | 220 } |
| 221 | 221 |
| 222 | 222 |
| 223 void Simd128Value::Simd128ValueVerify() { CHECK(IsSimd128Value()); } | 223 void Simd128Value::Simd128ValueVerify() { CHECK(IsSimd128Value()); } |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1316 |
| 1317 // Both are done at the same time. | 1317 // Both are done at the same time. |
| 1318 CHECK_EQ(new_it.done(), old_it.done()); | 1318 CHECK_EQ(new_it.done(), old_it.done()); |
| 1319 } | 1319 } |
| 1320 | 1320 |
| 1321 | 1321 |
| 1322 #endif // DEBUG | 1322 #endif // DEBUG |
| 1323 | 1323 |
| 1324 } // namespace internal | 1324 } // namespace internal |
| 1325 } // namespace v8 | 1325 } // namespace v8 |
| OLD | NEW |