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

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

Issue 39014: Add a meaningful name when disassembling code. This makes it easier... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 ASSERT(number->IsSmi()); 651 ASSERT(number->IsSmi());
652 int value = Smi::cast(number)->value(); 652 int value = Smi::cast(number)->value();
653 ASSERT(value == 0 || value == 1 || value == -1); 653 ASSERT(value == 0 || value == 1 || value == -1);
654 } 654 }
655 } 655 }
656 656
657 657
658 void Code::CodePrint() { 658 void Code::CodePrint() {
659 HeapObject::PrintHeader("Code"); 659 HeapObject::PrintHeader("Code");
660 #ifdef ENABLE_DISASSEMBLER 660 #ifdef ENABLE_DISASSEMBLER
661 Disassemble(); 661 Disassemble(NULL);
662 #endif 662 #endif
663 } 663 }
664 664
665 665
666 void Code::CodeVerify() { 666 void Code::CodeVerify() {
667 CHECK(ic_flag() == IC_TARGET_IS_ADDRESS); 667 CHECK(ic_flag() == IC_TARGET_IS_ADDRESS);
668 CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()), 668 CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()),
669 static_cast<intptr_t>(kCodeAlignment))); 669 static_cast<intptr_t>(kCodeAlignment)));
670 Address last_gc_pc = NULL; 670 Address last_gc_pc = NULL;
671 for (RelocIterator it(this); !it.done(); it.next()) { 671 for (RelocIterator it(this); !it.done(); it.next()) {
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 } 1088 }
1089 current = hash; 1089 current = hash;
1090 } 1090 }
1091 return true; 1091 return true;
1092 } 1092 }
1093 1093
1094 1094
1095 #endif // DEBUG 1095 #endif // DEBUG
1096 1096
1097 } } // namespace v8::internal 1097 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698