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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 nop(); | 289 nop(); |
290 ClearCompactBranchState(); | 290 ClearCompactBranchState(); |
291 } | 291 } |
292 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 292 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
293 // Set up code descriptor. | 293 // Set up code descriptor. |
294 desc->buffer = buffer_; | 294 desc->buffer = buffer_; |
295 desc->buffer_size = buffer_size_; | 295 desc->buffer_size = buffer_size_; |
296 desc->instr_size = pc_offset(); | 296 desc->instr_size = pc_offset(); |
297 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 297 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
298 desc->origin = this; | 298 desc->origin = this; |
| 299 desc->constant_pool_size = 0; |
299 } | 300 } |
300 | 301 |
301 | 302 |
302 void Assembler::Align(int m) { | 303 void Assembler::Align(int m) { |
303 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 304 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
304 if (IsPrevInstrCompactBranch()) { | 305 if (IsPrevInstrCompactBranch()) { |
305 nop(); | 306 nop(); |
306 ClearCompactBranchState(); | 307 ClearCompactBranchState(); |
307 } | 308 } |
308 while ((pc_offset() & (m - 1)) != 0) { | 309 while ((pc_offset() & (m - 1)) != 0) { |
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3047 | 3048 |
3048 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3049 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3049 CpuFeatures::FlushICache(pc, 2 * sizeof(int32_t)); | 3050 CpuFeatures::FlushICache(pc, 2 * sizeof(int32_t)); |
3050 } | 3051 } |
3051 } | 3052 } |
3052 | 3053 |
3053 } // namespace internal | 3054 } // namespace internal |
3054 } // namespace v8 | 3055 } // namespace v8 |
3055 | 3056 |
3056 #endif // V8_TARGET_ARCH_MIPS | 3057 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |