| 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/assembler-inl.h" | 7 #include "src/assembler-inl.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/disasm.h" | 9 #include "src/disasm.h" |
| 10 #include "src/disassembler.h" | 10 #include "src/disassembler.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 HeapObject* ho = HeapObject::cast(p); | 268 HeapObject* ho = HeapObject::cast(p); |
| 269 CHECK(ho->GetHeap()->Contains(ho)); | 269 CHECK(ho->GetHeap()->Contains(ho)); |
| 270 } | 270 } |
| 271 | 271 |
| 272 | 272 |
| 273 void Symbol::SymbolVerify() { | 273 void Symbol::SymbolVerify() { |
| 274 CHECK(IsSymbol()); | 274 CHECK(IsSymbol()); |
| 275 CHECK(HasHashCode()); | 275 CHECK(HasHashCode()); |
| 276 CHECK(Hash() > 0u); | 276 CHECK(Hash() > 0u); |
| 277 CHECK(name()->IsUndefined(GetIsolate()) || name()->IsString()); | 277 CHECK(name()->IsUndefined(GetIsolate()) || name()->IsString()); |
| 278 CHECK(descriptive_string()->IsString()); | |
| 279 } | 278 } |
| 280 | 279 |
| 281 | 280 |
| 282 void HeapNumber::HeapNumberVerify() { | 281 void HeapNumber::HeapNumberVerify() { |
| 283 CHECK(IsHeapNumber() || IsMutableHeapNumber()); | 282 CHECK(IsHeapNumber() || IsMutableHeapNumber()); |
| 284 } | 283 } |
| 285 | 284 |
| 286 void ByteArray::ByteArrayVerify() { | 285 void ByteArray::ByteArrayVerify() { |
| 287 CHECK(IsByteArray()); | 286 CHECK(IsByteArray()); |
| 288 } | 287 } |
| (...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 | 1648 |
| 1650 // Both are done at the same time. | 1649 // Both are done at the same time. |
| 1651 CHECK_EQ(new_it.done(), old_it.done()); | 1650 CHECK_EQ(new_it.done(), old_it.done()); |
| 1652 } | 1651 } |
| 1653 | 1652 |
| 1654 | 1653 |
| 1655 #endif // DEBUG | 1654 #endif // DEBUG |
| 1656 | 1655 |
| 1657 } // namespace internal | 1656 } // namespace internal |
| 1658 } // namespace v8 | 1657 } // namespace v8 |
| OLD | NEW |