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

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

Issue 11663005: Adapt Danno's Track Allocation Info idea to fast literals. When allocating a literal array, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few more review comments Created 7 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 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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 VerifyPointer(args()); 767 VerifyPointer(args());
768 } 768 }
769 769
770 770
771 void TypeSwitchInfo::TypeSwitchInfoVerify() { 771 void TypeSwitchInfo::TypeSwitchInfoVerify() {
772 CHECK(IsTypeSwitchInfo()); 772 CHECK(IsTypeSwitchInfo());
773 VerifyPointer(types()); 773 VerifyPointer(types());
774 } 774 }
775 775
776 776
777 void AllocationSiteInfo::AllocationSiteInfoVerify() {
778 CHECK(IsAllocationSiteInfo());
779 VerifyHeapPointer(payload());
780 CHECK(payload()->IsObject());
781 }
782
783
777 void Script::ScriptVerify() { 784 void Script::ScriptVerify() {
778 CHECK(IsScript()); 785 CHECK(IsScript());
779 VerifyPointer(source()); 786 VerifyPointer(source());
780 VerifyPointer(name()); 787 VerifyPointer(name());
781 line_offset()->SmiVerify(); 788 line_offset()->SmiVerify();
782 column_offset()->SmiVerify(); 789 column_offset()->SmiVerify();
783 VerifyPointer(data()); 790 VerifyPointer(data());
784 VerifyPointer(wrapper()); 791 VerifyPointer(wrapper());
785 type()->SmiVerify(); 792 type()->SmiVerify();
786 VerifyPointer(line_ends()); 793 VerifyPointer(line_ends());
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 for (int i = 0; i < number_of_transitions(); ++i) { 1012 for (int i = 0; i < number_of_transitions(); ++i) {
1006 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1013 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1007 } 1014 }
1008 return true; 1015 return true;
1009 } 1016 }
1010 1017
1011 1018
1012 #endif // DEBUG 1019 #endif // DEBUG
1013 1020
1014 } } // namespace v8::internal 1021 } } // 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