| OLD | NEW |
| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 } | 396 } |
| 397 | 397 |
| 398 | 398 |
| 399 void TypeFeedbackInfo::TypeFeedbackInfoVerify() { | 399 void TypeFeedbackInfo::TypeFeedbackInfoVerify() { |
| 400 VerifyObjectField(kStorage1Offset); | 400 VerifyObjectField(kStorage1Offset); |
| 401 VerifyObjectField(kStorage2Offset); | 401 VerifyObjectField(kStorage2Offset); |
| 402 VerifyHeapPointer(type_feedback_cells()); | 402 VerifyHeapPointer(type_feedback_cells()); |
| 403 } | 403 } |
| 404 | 404 |
| 405 | 405 |
| 406 void AliasedArgumentsEntry::AliasedArgumentsEntryVerify() { | |
| 407 VerifySmiField(kAliasedContextSlot); | |
| 408 } | |
| 409 | |
| 410 | |
| 411 void FixedArray::FixedArrayVerify() { | 406 void FixedArray::FixedArrayVerify() { |
| 412 for (int i = 0; i < length(); i++) { | 407 for (int i = 0; i < length(); i++) { |
| 413 Object* e = get(i); | 408 Object* e = get(i); |
| 414 if (e->IsHeapObject()) { | 409 if (e->IsHeapObject()) { |
| 415 VerifyHeapPointer(e); | 410 VerifyHeapPointer(e); |
| 416 } else { | 411 } else { |
| 417 e->Verify(); | 412 e->Verify(); |
| 418 } | 413 } |
| 419 } | 414 } |
| 420 } | 415 } |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 CHECK(IsJSDataView()); | 819 CHECK(IsJSDataView()); |
| 825 JSArrayBufferViewVerify(); | 820 JSArrayBufferViewVerify(); |
| 826 } | 821 } |
| 827 | 822 |
| 828 | 823 |
| 829 void Foreign::ForeignVerify() { | 824 void Foreign::ForeignVerify() { |
| 830 CHECK(IsForeign()); | 825 CHECK(IsForeign()); |
| 831 } | 826 } |
| 832 | 827 |
| 833 | 828 |
| 834 void Box::BoxVerify() { | |
| 835 CHECK(IsBox()); | |
| 836 value()->Verify(); | |
| 837 } | |
| 838 | |
| 839 | |
| 840 void AccessorInfo::AccessorInfoVerify() { | 829 void AccessorInfo::AccessorInfoVerify() { |
| 841 VerifyPointer(name()); | 830 VerifyPointer(name()); |
| 842 VerifyPointer(flag()); | 831 VerifyPointer(flag()); |
| 843 VerifyPointer(expected_receiver_type()); | 832 VerifyPointer(expected_receiver_type()); |
| 844 } | 833 } |
| 845 | 834 |
| 846 | 835 |
| 847 void ExecutableAccessorInfo::ExecutableAccessorInfoVerify() { | |
| 848 CHECK(IsExecutableAccessorInfo()); | |
| 849 AccessorInfoVerify(); | |
| 850 VerifyPointer(getter()); | |
| 851 VerifyPointer(setter()); | |
| 852 VerifyPointer(data()); | |
| 853 } | |
| 854 | |
| 855 | |
| 856 void DeclaredAccessorDescriptor::DeclaredAccessorDescriptorVerify() { | 836 void DeclaredAccessorDescriptor::DeclaredAccessorDescriptorVerify() { |
| 857 CHECK(IsDeclaredAccessorDescriptor()); | 837 CHECK(IsDeclaredAccessorDescriptor()); |
| 858 VerifyPointer(serialized_data()); | 838 VerifyPointer(serialized_data()); |
| 859 } | 839 } |
| 860 | 840 |
| 861 | 841 |
| 862 void DeclaredAccessorInfo::DeclaredAccessorInfoVerify() { | |
| 863 CHECK(IsDeclaredAccessorInfo()); | |
| 864 AccessorInfoVerify(); | |
| 865 VerifyPointer(descriptor()); | |
| 866 } | |
| 867 | |
| 868 | |
| 869 void AccessorPair::AccessorPairVerify() { | 842 void AccessorPair::AccessorPairVerify() { |
| 870 CHECK(IsAccessorPair()); | 843 CHECK(IsAccessorPair()); |
| 871 VerifyPointer(getter()); | 844 VerifyPointer(getter()); |
| 872 VerifyPointer(setter()); | 845 VerifyPointer(setter()); |
| 873 VerifySmiField(kAccessFlagsOffset); | 846 VerifySmiField(kAccessFlagsOffset); |
| 874 } | 847 } |
| 875 | 848 |
| 876 | 849 |
| 877 void AccessCheckInfo::AccessCheckInfoVerify() { | 850 void AccessCheckInfo::AccessCheckInfoVerify() { |
| 878 CHECK(IsAccessCheckInfo()); | 851 CHECK(IsAccessCheckInfo()); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 899 VerifyPointer(data()); | 872 VerifyPointer(data()); |
| 900 } | 873 } |
| 901 | 874 |
| 902 | 875 |
| 903 void TemplateInfo::TemplateInfoVerify() { | 876 void TemplateInfo::TemplateInfoVerify() { |
| 904 VerifyPointer(tag()); | 877 VerifyPointer(tag()); |
| 905 VerifyPointer(property_list()); | 878 VerifyPointer(property_list()); |
| 906 } | 879 } |
| 907 | 880 |
| 908 | 881 |
| 909 void FunctionTemplateInfo::FunctionTemplateInfoVerify() { | |
| 910 CHECK(IsFunctionTemplateInfo()); | |
| 911 TemplateInfoVerify(); | |
| 912 VerifyPointer(serial_number()); | |
| 913 VerifyPointer(call_code()); | |
| 914 VerifyPointer(property_accessors()); | |
| 915 VerifyPointer(prototype_template()); | |
| 916 VerifyPointer(parent_template()); | |
| 917 VerifyPointer(named_property_handler()); | |
| 918 VerifyPointer(indexed_property_handler()); | |
| 919 VerifyPointer(instance_template()); | |
| 920 VerifyPointer(signature()); | |
| 921 VerifyPointer(access_check_info()); | |
| 922 } | |
| 923 | |
| 924 | |
| 925 void ObjectTemplateInfo::ObjectTemplateInfoVerify() { | |
| 926 CHECK(IsObjectTemplateInfo()); | |
| 927 TemplateInfoVerify(); | |
| 928 VerifyPointer(constructor()); | |
| 929 VerifyPointer(internal_field_count()); | |
| 930 } | |
| 931 | |
| 932 | |
| 933 void SignatureInfo::SignatureInfoVerify() { | |
| 934 CHECK(IsSignatureInfo()); | |
| 935 VerifyPointer(receiver()); | |
| 936 VerifyPointer(args()); | |
| 937 } | |
| 938 | |
| 939 | |
| 940 void TypeSwitchInfo::TypeSwitchInfoVerify() { | |
| 941 CHECK(IsTypeSwitchInfo()); | |
| 942 VerifyPointer(types()); | |
| 943 } | |
| 944 | |
| 945 | |
| 946 void AllocationSite::AllocationSiteVerify() { | 882 void AllocationSite::AllocationSiteVerify() { |
| 947 CHECK(IsAllocationSite()); | 883 CHECK(IsAllocationSite()); |
| 948 } | 884 } |
| 949 | 885 |
| 950 | 886 |
| 951 void AllocationMemento::AllocationMementoVerify() { | 887 void AllocationMemento::AllocationMementoVerify() { |
| 952 CHECK(IsAllocationMemento()); | 888 CHECK(IsAllocationMemento()); |
| 953 VerifyHeapPointer(allocation_site()); | 889 VerifyHeapPointer(allocation_site()); |
| 954 CHECK(!IsValid() || GetAllocationSite()->IsAllocationSite()); | 890 CHECK(!IsValid() || GetAllocationSite()->IsAllocationSite()); |
| 955 } | 891 } |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 for (int i = 0; i < number_of_transitions(); ++i) { | 1119 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1184 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1120 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1185 } | 1121 } |
| 1186 return true; | 1122 return true; |
| 1187 } | 1123 } |
| 1188 | 1124 |
| 1189 | 1125 |
| 1190 #endif // DEBUG | 1126 #endif // DEBUG |
| 1191 | 1127 |
| 1192 } } // namespace v8::internal | 1128 } } // namespace v8::internal |
| OLD | NEW |