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

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

Issue 7094003: Per-Isolate cache for polymorphic stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address Mads' comments Created 9 years, 6 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
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698