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

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

Issue 214051: Pushed 1.3.12 to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 2 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 726
727 void Code::CodePrint() { 727 void Code::CodePrint() {
728 HeapObject::PrintHeader("Code"); 728 HeapObject::PrintHeader("Code");
729 #ifdef ENABLE_DISASSEMBLER 729 #ifdef ENABLE_DISASSEMBLER
730 Disassemble(NULL); 730 Disassemble(NULL);
731 #endif 731 #endif
732 } 732 }
733 733
734 734
735 void Code::CodeVerify() { 735 void Code::CodeVerify() {
736 CHECK(ic_flag() == IC_TARGET_IS_ADDRESS);
737 CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()), 736 CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()),
738 static_cast<intptr_t>(kCodeAlignment))); 737 static_cast<intptr_t>(kCodeAlignment)));
739 Address last_gc_pc = NULL; 738 Address last_gc_pc = NULL;
740 for (RelocIterator it(this); !it.done(); it.next()) { 739 for (RelocIterator it(this); !it.done(); it.next()) {
741 it.rinfo()->Verify(); 740 it.rinfo()->Verify();
742 // Ensure that GC will not iterate twice over the same pointer. 741 // Ensure that GC will not iterate twice over the same pointer.
743 if (RelocInfo::IsGCRelocMode(it.rinfo()->rmode())) { 742 if (RelocInfo::IsGCRelocMode(it.rinfo()->rmode())) {
744 CHECK(it.rinfo()->pc() != last_gc_pc); 743 CHECK(it.rinfo()->pc() != last_gc_pc);
745 last_gc_pc = it.rinfo()->pc(); 744 last_gc_pc = it.rinfo()->pc();
746 } 745 }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 } 1158 }
1160 current = hash; 1159 current = hash;
1161 } 1160 }
1162 return true; 1161 return true;
1163 } 1162 }
1164 1163
1165 1164
1166 #endif // DEBUG 1165 #endif // DEBUG
1167 1166
1168 } } // namespace v8::internal 1167 } } // 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