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

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

Issue 10615002: Track allocation info (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Diff with b_e Created 8 years, 1 month 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.h ('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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 VerifyPointer(args()); 763 VerifyPointer(args());
764 } 764 }
765 765
766 766
767 void TypeSwitchInfo::TypeSwitchInfoVerify() { 767 void TypeSwitchInfo::TypeSwitchInfoVerify() {
768 CHECK(IsTypeSwitchInfo()); 768 CHECK(IsTypeSwitchInfo());
769 VerifyPointer(types()); 769 VerifyPointer(types());
770 } 770 }
771 771
772 772
773 void AllocationSiteInfo::AllocationSiteInfoVerify() {
774 CHECK(IsAllocationSiteInfo());
775 }
776
777
773 void Script::ScriptVerify() { 778 void Script::ScriptVerify() {
774 CHECK(IsScript()); 779 CHECK(IsScript());
775 VerifyPointer(source()); 780 VerifyPointer(source());
776 VerifyPointer(name()); 781 VerifyPointer(name());
777 line_offset()->SmiVerify(); 782 line_offset()->SmiVerify();
778 column_offset()->SmiVerify(); 783 column_offset()->SmiVerify();
779 VerifyPointer(data()); 784 VerifyPointer(data());
780 VerifyPointer(wrapper()); 785 VerifyPointer(wrapper());
781 type()->SmiVerify(); 786 type()->SmiVerify();
782 VerifyPointer(line_ends()); 787 VerifyPointer(line_ends());
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 for (int i = 0; i < number_of_transitions(); ++i) { 1006 for (int i = 0; i < number_of_transitions(); ++i) {
1002 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1007 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1003 } 1008 }
1004 return true; 1009 return true;
1005 } 1010 }
1006 1011
1007 1012
1008 #endif // DEBUG 1013 #endif // DEBUG
1009 1014
1010 } } // namespace v8::internal 1015 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698