OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 718 |
719 #ifdef ENABLE_DISASSEMBLER | 719 #ifdef ENABLE_DISASSEMBLER |
720 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { | 720 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { |
721 switch (rmode) { | 721 switch (rmode) { |
722 case NONE32: | 722 case NONE32: |
723 return "no reloc 32"; | 723 return "no reloc 32"; |
724 case NONE64: | 724 case NONE64: |
725 return "no reloc 64"; | 725 return "no reloc 64"; |
726 case EMBEDDED_OBJECT: | 726 case EMBEDDED_OBJECT: |
727 return "embedded object"; | 727 return "embedded object"; |
728 case DEBUGGER_STATEMENT: | |
729 return "debugger statement"; | |
730 case CODE_TARGET: | 728 case CODE_TARGET: |
731 return "code target"; | 729 return "code target"; |
732 case CODE_TARGET_WITH_ID: | 730 case CODE_TARGET_WITH_ID: |
733 return "code target with id"; | 731 return "code target with id"; |
734 case CELL: | 732 case CELL: |
735 return "property cell"; | 733 return "property cell"; |
736 case RUNTIME_ENTRY: | 734 case RUNTIME_ENTRY: |
737 return "runtime entry"; | 735 return "runtime entry"; |
738 case COMMENT: | 736 case COMMENT: |
739 return "comment"; | 737 return "comment"; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 | 825 |
828 #ifdef VERIFY_HEAP | 826 #ifdef VERIFY_HEAP |
829 void RelocInfo::Verify(Isolate* isolate) { | 827 void RelocInfo::Verify(Isolate* isolate) { |
830 switch (rmode_) { | 828 switch (rmode_) { |
831 case EMBEDDED_OBJECT: | 829 case EMBEDDED_OBJECT: |
832 Object::VerifyPointer(target_object()); | 830 Object::VerifyPointer(target_object()); |
833 break; | 831 break; |
834 case CELL: | 832 case CELL: |
835 Object::VerifyPointer(target_cell()); | 833 Object::VerifyPointer(target_cell()); |
836 break; | 834 break; |
837 case DEBUGGER_STATEMENT: | |
838 case CODE_TARGET_WITH_ID: | 835 case CODE_TARGET_WITH_ID: |
839 case CODE_TARGET: { | 836 case CODE_TARGET: { |
840 // convert inline target address to code object | 837 // convert inline target address to code object |
841 Address addr = target_address(); | 838 Address addr = target_address(); |
842 CHECK(addr != NULL); | 839 CHECK(addr != NULL); |
843 // Check that we can find the right code object. | 840 // Check that we can find the right code object. |
844 Code* code = Code::GetCodeFromTargetAddress(addr); | 841 Code* code = Code::GetCodeFromTargetAddress(addr); |
845 Object* found = isolate->FindCodeObject(addr); | 842 Object* found = isolate->FindCodeObject(addr); |
846 CHECK(found->IsCode()); | 843 CHECK(found->IsCode()); |
847 CHECK(code->address() == HeapObject::cast(found)->address()); | 844 CHECK(code->address() == HeapObject::cast(found)->address()); |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1931 | 1928 |
1932 | 1929 |
1933 void Assembler::DataAlign(int m) { | 1930 void Assembler::DataAlign(int m) { |
1934 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1931 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
1935 while ((pc_offset() & (m - 1)) != 0) { | 1932 while ((pc_offset() & (m - 1)) != 0) { |
1936 db(0); | 1933 db(0); |
1937 } | 1934 } |
1938 } | 1935 } |
1939 } // namespace internal | 1936 } // namespace internal |
1940 } // namespace v8 | 1937 } // namespace v8 |
OLD | NEW |