| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3168 if (FLAG_code_comments) { | 3168 if (FLAG_code_comments) { |
| 3169 CheckBuffer(); | 3169 CheckBuffer(); |
| 3170 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3170 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
| 3171 } | 3171 } |
| 3172 } | 3172 } |
| 3173 | 3173 |
| 3174 | 3174 |
| 3175 void Assembler::RecordConstPool(int size) { | 3175 void Assembler::RecordConstPool(int size) { |
| 3176 // We only need this for debugger support, to correctly compute offsets in the | 3176 // We only need this for debugger support, to correctly compute offsets in the |
| 3177 // code. | 3177 // code. |
| 3178 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 3179 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); | 3178 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); |
| 3180 #endif | |
| 3181 } | 3179 } |
| 3182 | 3180 |
| 3183 | 3181 |
| 3184 void Assembler::GrowBuffer() { | 3182 void Assembler::GrowBuffer() { |
| 3185 if (!own_buffer_) FATAL("external code buffer is too small"); | 3183 if (!own_buffer_) FATAL("external code buffer is too small"); |
| 3186 | 3184 |
| 3187 // Compute new buffer size. | 3185 // Compute new buffer size. |
| 3188 CodeDesc desc; // the new buffer | 3186 CodeDesc desc; // the new buffer |
| 3189 if (buffer_size_ < 4*KB) { | 3187 if (buffer_size_ < 4*KB) { |
| 3190 desc.buffer_size = 4*KB; | 3188 desc.buffer_size = 4*KB; |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3744 ASSERT((index_64bit == count_of_64bit_) && | 3742 ASSERT((index_64bit == count_of_64bit_) && |
| 3745 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && | 3743 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && |
| 3746 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && | 3744 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && |
| 3747 (index_32bit == (index_heap_ptr + count_of_32bit_))); | 3745 (index_32bit == (index_heap_ptr + count_of_32bit_))); |
| 3748 } | 3746 } |
| 3749 | 3747 |
| 3750 | 3748 |
| 3751 } } // namespace v8::internal | 3749 } } // namespace v8::internal |
| 3752 | 3750 |
| 3753 #endif // V8_TARGET_ARCH_ARM | 3751 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |