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

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

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some cleanup Created 7 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
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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 VerifyPointer(args()); 881 VerifyPointer(args());
882 } 882 }
883 883
884 884
885 void TypeSwitchInfo::TypeSwitchInfoVerify() { 885 void TypeSwitchInfo::TypeSwitchInfoVerify() {
886 CHECK(IsTypeSwitchInfo()); 886 CHECK(IsTypeSwitchInfo());
887 VerifyPointer(types()); 887 VerifyPointer(types());
888 } 888 }
889 889
890 890
891 void AllocationSite::AllocationSiteVerify() {
892 CHECK(IsAllocationSite());
893 }
894
895
891 void AllocationSiteInfo::AllocationSiteInfoVerify() { 896 void AllocationSiteInfo::AllocationSiteInfoVerify() {
892 CHECK(IsAllocationSiteInfo()); 897 CHECK(IsAllocationSiteInfo());
893 VerifyHeapPointer(payload()); 898 VerifyHeapPointer(payload());
894 CHECK(payload()->IsObject()); 899 // TODO(mvstanton): remove the IsJSGlobalPropertyCell check when
900 // constructed arrays uses the site too.
901 CHECK(payload()->IsAllocationSite() || payload()->IsJSGlobalPropertyCell());
895 } 902 }
896 903
897 904
898 void Script::ScriptVerify() { 905 void Script::ScriptVerify() {
899 CHECK(IsScript()); 906 CHECK(IsScript());
900 VerifyPointer(source()); 907 VerifyPointer(source());
901 VerifyPointer(name()); 908 VerifyPointer(name());
902 line_offset()->SmiVerify(); 909 line_offset()->SmiVerify();
903 column_offset()->SmiVerify(); 910 column_offset()->SmiVerify();
904 VerifyPointer(data()); 911 VerifyPointer(data());
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 for (int i = 0; i < number_of_transitions(); ++i) { 1133 for (int i = 0; i < number_of_transitions(); ++i) {
1127 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1134 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1128 } 1135 }
1129 return true; 1136 return true;
1130 } 1137 }
1131 1138
1132 1139
1133 #endif // DEBUG 1140 #endif // DEBUG
1134 1141
1135 } } // namespace v8::internal 1142 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698