Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: src/objects-debug.cc

Issue 9403009: Count ICs that have type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix confusing --trace-opt output Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 || normal_type_cache()->IsCodeCacheHashTable()); 319 || normal_type_cache()->IsCodeCacheHashTable());
320 } 320 }
321 321
322 322
323 void PolymorphicCodeCache::PolymorphicCodeCacheVerify() { 323 void PolymorphicCodeCache::PolymorphicCodeCacheVerify() {
324 VerifyHeapPointer(cache()); 324 VerifyHeapPointer(cache());
325 ASSERT(cache()->IsUndefined() || cache()->IsPolymorphicCodeCacheHashTable()); 325 ASSERT(cache()->IsUndefined() || cache()->IsPolymorphicCodeCacheHashTable());
326 } 326 }
327 327
328 328
329 void TypeFeedbackInfo::TypeFeedbackInfoVerify() {
330 VerifyObjectField(kIcTotalCountOffset);
331 VerifyObjectField(kIcWithTypeinfoCountOffset);
332 VerifyHeapPointer(type_feedback_cells());
333 }
334
335
329 void FixedArray::FixedArrayVerify() { 336 void FixedArray::FixedArrayVerify() {
330 for (int i = 0; i < length(); i++) { 337 for (int i = 0; i < length(); i++) {
331 Object* e = get(i); 338 Object* e = get(i);
332 if (e->IsHeapObject()) { 339 if (e->IsHeapObject()) {
333 VerifyHeapPointer(e); 340 VerifyHeapPointer(e);
334 } else { 341 } else {
335 e->Verify(); 342 e->Verify();
336 } 343 }
337 } 344 }
338 } 345 }
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 ASSERT(e->IsUndefined()); 863 ASSERT(e->IsUndefined());
857 } 864 }
858 } 865 }
859 } 866 }
860 } 867 }
861 868
862 869
863 #endif // DEBUG 870 #endif // DEBUG
864 871
865 } } // namespace v8::internal 872 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698