OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |