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

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

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 11 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 void AccessorInfo::AccessorInfoVerify() { 595 void AccessorInfo::AccessorInfoVerify() {
596 CHECK(IsAccessorInfo()); 596 CHECK(IsAccessorInfo());
597 VerifyPointer(getter()); 597 VerifyPointer(getter());
598 VerifyPointer(setter()); 598 VerifyPointer(setter());
599 VerifyPointer(name()); 599 VerifyPointer(name());
600 VerifyPointer(data()); 600 VerifyPointer(data());
601 VerifyPointer(flag()); 601 VerifyPointer(flag());
602 } 602 }
603 603
604 604
605 void AccessorPair::AccessorPairVerify() {
606 CHECK(IsAccessorPair());
607 VerifyPointer(getter());
608 VerifyPointer(setter());
609 }
610
611
605 void AccessCheckInfo::AccessCheckInfoVerify() { 612 void AccessCheckInfo::AccessCheckInfoVerify() {
606 CHECK(IsAccessCheckInfo()); 613 CHECK(IsAccessCheckInfo());
607 VerifyPointer(named_callback()); 614 VerifyPointer(named_callback());
608 VerifyPointer(indexed_callback()); 615 VerifyPointer(indexed_callback());
609 VerifyPointer(data()); 616 VerifyPointer(data());
610 } 617 }
611 618
612 619
613 void InterceptorInfo::InterceptorInfoVerify() { 620 void InterceptorInfo::InterceptorInfoVerify() {
614 CHECK(IsInterceptorInfo()); 621 CHECK(IsInterceptorInfo());
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 info->number_of_fast_unused_elements_ += holes; 739 info->number_of_fast_unused_elements_ += holes;
733 break; 740 break;
734 } 741 }
735 case EXTERNAL_PIXEL_ELEMENTS: { 742 case EXTERNAL_PIXEL_ELEMENTS: {
736 info->number_of_objects_with_fast_elements_++; 743 info->number_of_objects_with_fast_elements_++;
737 ExternalPixelArray* e = ExternalPixelArray::cast(elements()); 744 ExternalPixelArray* e = ExternalPixelArray::cast(elements());
738 info->number_of_fast_used_elements_ += e->length(); 745 info->number_of_fast_used_elements_ += e->length();
739 break; 746 break;
740 } 747 }
741 case DICTIONARY_ELEMENTS: { 748 case DICTIONARY_ELEMENTS: {
742 NumberDictionary* dict = element_dictionary(); 749 SeededNumberDictionary* dict = element_dictionary();
743 info->number_of_slow_used_elements_ += dict->NumberOfElements(); 750 info->number_of_slow_used_elements_ += dict->NumberOfElements();
744 info->number_of_slow_unused_elements_ += 751 info->number_of_slow_unused_elements_ +=
745 dict->Capacity() - dict->NumberOfElements(); 752 dict->Capacity() - dict->NumberOfElements();
746 break; 753 break;
747 } 754 }
748 default: 755 default:
749 UNREACHABLE(); 756 UNREACHABLE();
750 break; 757 break;
751 } 758 }
752 } 759 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 ASSERT(e->IsUndefined()); 854 ASSERT(e->IsUndefined());
848 } 855 }
849 } 856 }
850 } 857 }
851 } 858 }
852 859
853 860
854 #endif // DEBUG 861 #endif // DEBUG
855 862
856 } } // namespace v8::internal 863 } } // 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