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

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

Issue 3186: Refactor the enum RelocMode changing the naming scheme from lower case to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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/parser.cc » ('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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 #endif 600 #endif
601 } 601 }
602 602
603 603
604 void Code::CodeVerify() { 604 void Code::CodeVerify() {
605 CHECK(ic_flag() == IC_TARGET_IS_ADDRESS); 605 CHECK(ic_flag() == IC_TARGET_IS_ADDRESS);
606 Address last_gc_pc = NULL; 606 Address last_gc_pc = NULL;
607 for (RelocIterator it(this); !it.done(); it.next()) { 607 for (RelocIterator it(this); !it.done(); it.next()) {
608 it.rinfo()->Verify(); 608 it.rinfo()->Verify();
609 // Ensure that GC will not iterate twice over the same pointer. 609 // Ensure that GC will not iterate twice over the same pointer.
610 if (is_gc_reloc_mode(it.rinfo()->rmode())) { 610 if (RelocInfo::IsGCRelocMode(it.rinfo()->rmode())) {
611 CHECK(it.rinfo()->pc() != last_gc_pc); 611 CHECK(it.rinfo()->pc() != last_gc_pc);
612 last_gc_pc = it.rinfo()->pc(); 612 last_gc_pc = it.rinfo()->pc();
613 } 613 }
614 } 614 }
615 } 615 }
616 616
617 617
618 void JSArray::JSArrayVerify() { 618 void JSArray::JSArrayVerify() {
619 JSObjectVerify(); 619 JSObjectVerify();
620 ASSERT(length()->IsNumber() || length()->IsUndefined()); 620 ASSERT(length()->IsNumber() || length()->IsUndefined());
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 } 990 }
991 current = hash; 991 current = hash;
992 } 992 }
993 return true; 993 return true;
994 } 994 }
995 995
996 996
997 #endif // DEBUG 997 #endif // DEBUG
998 998
999 } } // namespace v8::internal 999 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698