OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 void CodeCache::CodeCacheVerify() { | 283 void CodeCache::CodeCacheVerify() { |
284 VerifyHeapPointer(default_cache()); | 284 VerifyHeapPointer(default_cache()); |
285 VerifyHeapPointer(normal_type_cache()); | 285 VerifyHeapPointer(normal_type_cache()); |
286 ASSERT(default_cache()->IsFixedArray()); | 286 ASSERT(default_cache()->IsFixedArray()); |
287 ASSERT(normal_type_cache()->IsUndefined() | 287 ASSERT(normal_type_cache()->IsUndefined() |
288 || normal_type_cache()->IsCodeCacheHashTable()); | 288 || normal_type_cache()->IsCodeCacheHashTable()); |
289 } | 289 } |
290 | 290 |
291 | 291 |
| 292 void PolymorphicCodeCache::PolymorphicCodeCacheVerify() { |
| 293 VerifyHeapPointer(cache()); |
| 294 ASSERT(cache()->IsUndefined() || cache()->IsPolymorphicCodeCacheHashTable()); |
| 295 } |
| 296 |
| 297 |
292 void FixedArray::FixedArrayVerify() { | 298 void FixedArray::FixedArrayVerify() { |
293 for (int i = 0; i < length(); i++) { | 299 for (int i = 0; i < length(); i++) { |
294 Object* e = get(i); | 300 Object* e = get(i); |
295 if (e->IsHeapObject()) { | 301 if (e->IsHeapObject()) { |
296 VerifyHeapPointer(e); | 302 VerifyHeapPointer(e); |
297 } else { | 303 } else { |
298 e->Verify(); | 304 e->Verify(); |
299 } | 305 } |
300 } | 306 } |
301 } | 307 } |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 ASSERT(e->IsUndefined()); | 735 ASSERT(e->IsUndefined()); |
730 } | 736 } |
731 } | 737 } |
732 } | 738 } |
733 } | 739 } |
734 | 740 |
735 | 741 |
736 #endif // DEBUG | 742 #endif // DEBUG |
737 | 743 |
738 } } // namespace v8::internal | 744 } } // namespace v8::internal |
OLD | NEW |