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

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

Issue 12213012: Split AccessorInfo into DeclaredAccessorInfo and ExecutableAccessorInfo (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed most feedback Created 7 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
« 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 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 VerifyPointer(construct_trap()); 700 VerifyPointer(construct_trap());
701 } 701 }
702 702
703 703
704 void Foreign::ForeignVerify() { 704 void Foreign::ForeignVerify() {
705 CHECK(IsForeign()); 705 CHECK(IsForeign());
706 } 706 }
707 707
708 708
709 void AccessorInfo::AccessorInfoVerify() { 709 void AccessorInfo::AccessorInfoVerify() {
710 CHECK(IsAccessorInfo()); 710 VerifyPointer(name());
711 VerifyPointer(flag());
712 VerifyPointer(expected_receiver_type());
713 }
714
715
716 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() {
717 CHECK(IsExecutableAccessorInfo());
718 AccessorInfoVerify();
711 VerifyPointer(getter()); 719 VerifyPointer(getter());
712 VerifyPointer(setter()); 720 VerifyPointer(setter());
713 VerifyPointer(name());
714 VerifyPointer(data()); 721 VerifyPointer(data());
715 VerifyPointer(flag()); 722 }
716 VerifyPointer(expected_receiver_type()); 723
724
725 void DeclaredAccessorDescriptor::DeclaredAccessorDescriptorVerify() {
726 CHECK(IsDeclaredAccessorDescriptor());
727 VerifySmiField(kInternalFieldOffset);
728 }
729
730
731 void DeclaredAccessorInfo::DeclaredAccessorInfoVerify() {
732 CHECK(IsDeclaredAccessorInfo());
733 AccessorInfoVerify();
734 VerifyPointer(descriptor());
717 } 735 }
718 736
719 737
720 void AccessorPair::AccessorPairVerify() { 738 void AccessorPair::AccessorPairVerify() {
721 CHECK(IsAccessorPair()); 739 CHECK(IsAccessorPair());
722 VerifyPointer(getter()); 740 VerifyPointer(getter());
723 VerifyPointer(setter()); 741 VerifyPointer(setter());
724 } 742 }
725 743
726 744
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 for (int i = 0; i < number_of_transitions(); ++i) { 1048 for (int i = 0; i < number_of_transitions(); ++i) {
1031 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1049 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1032 } 1050 }
1033 return true; 1051 return true;
1034 } 1052 }
1035 1053
1036 1054
1037 #endif // DEBUG 1055 #endif // DEBUG
1038 1056
1039 } } // namespace v8::internal 1057 } } // 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