| 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 | 716 |
| 717 #ifdef ENABLE_DISASSEMBLER | 717 #ifdef ENABLE_DISASSEMBLER |
| 718 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { | 718 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { |
| 719 switch (rmode) { | 719 switch (rmode) { |
| 720 case NONE32: | 720 case NONE32: |
| 721 return "no reloc 32"; | 721 return "no reloc 32"; |
| 722 case NONE64: | 722 case NONE64: |
| 723 return "no reloc 64"; | 723 return "no reloc 64"; |
| 724 case EMBEDDED_OBJECT: | 724 case EMBEDDED_OBJECT: |
| 725 return "embedded object"; | 725 return "embedded object"; |
| 726 case DEBUGGER_STATEMENT: | |
| 727 return "debugger statement"; | |
| 728 case CODE_TARGET: | 726 case CODE_TARGET: |
| 729 return "code target"; | 727 return "code target"; |
| 730 case CODE_TARGET_WITH_ID: | 728 case CODE_TARGET_WITH_ID: |
| 731 return "code target with id"; | 729 return "code target with id"; |
| 732 case CELL: | 730 case CELL: |
| 733 return "property cell"; | 731 return "property cell"; |
| 734 case RUNTIME_ENTRY: | 732 case RUNTIME_ENTRY: |
| 735 return "runtime entry"; | 733 return "runtime entry"; |
| 736 case COMMENT: | 734 case COMMENT: |
| 737 return "comment"; | 735 return "comment"; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 | 821 |
| 824 #ifdef VERIFY_HEAP | 822 #ifdef VERIFY_HEAP |
| 825 void RelocInfo::Verify(Isolate* isolate) { | 823 void RelocInfo::Verify(Isolate* isolate) { |
| 826 switch (rmode_) { | 824 switch (rmode_) { |
| 827 case EMBEDDED_OBJECT: | 825 case EMBEDDED_OBJECT: |
| 828 Object::VerifyPointer(target_object()); | 826 Object::VerifyPointer(target_object()); |
| 829 break; | 827 break; |
| 830 case CELL: | 828 case CELL: |
| 831 Object::VerifyPointer(target_cell()); | 829 Object::VerifyPointer(target_cell()); |
| 832 break; | 830 break; |
| 833 case DEBUGGER_STATEMENT: | |
| 834 case CODE_TARGET_WITH_ID: | 831 case CODE_TARGET_WITH_ID: |
| 835 case CODE_TARGET: { | 832 case CODE_TARGET: { |
| 836 // convert inline target address to code object | 833 // convert inline target address to code object |
| 837 Address addr = target_address(); | 834 Address addr = target_address(); |
| 838 CHECK(addr != NULL); | 835 CHECK(addr != NULL); |
| 839 // Check that we can find the right code object. | 836 // Check that we can find the right code object. |
| 840 Code* code = Code::GetCodeFromTargetAddress(addr); | 837 Code* code = Code::GetCodeFromTargetAddress(addr); |
| 841 Object* found = isolate->FindCodeObject(addr); | 838 Object* found = isolate->FindCodeObject(addr); |
| 842 CHECK(found->IsCode()); | 839 CHECK(found->IsCode()); |
| 843 CHECK(code->address() == HeapObject::cast(found)->address()); | 840 CHECK(code->address() == HeapObject::cast(found)->address()); |
| (...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1925 | 1922 |
| 1926 | 1923 |
| 1927 void Assembler::DataAlign(int m) { | 1924 void Assembler::DataAlign(int m) { |
| 1928 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1925 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 1929 while ((pc_offset() & (m - 1)) != 0) { | 1926 while ((pc_offset() & (m - 1)) != 0) { |
| 1930 db(0); | 1927 db(0); |
| 1931 } | 1928 } |
| 1932 } | 1929 } |
| 1933 } // namespace internal | 1930 } // namespace internal |
| 1934 } // namespace v8 | 1931 } // namespace v8 |
| OLD | NEW |