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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 void Assembler::GetCode(CodeDesc* desc) { | 266 void Assembler::GetCode(CodeDesc* desc) { |
267 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 267 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
268 // Set up code descriptor. | 268 // Set up code descriptor. |
269 desc->buffer = buffer_; | 269 desc->buffer = buffer_; |
270 desc->buffer_size = buffer_size_; | 270 desc->buffer_size = buffer_size_; |
271 desc->instr_size = pc_offset(); | 271 desc->instr_size = pc_offset(); |
272 desc->reloc_size = | 272 desc->reloc_size = |
273 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); | 273 static_cast<int>((buffer_ + buffer_size_) - reloc_info_writer.pos()); |
274 desc->origin = this; | 274 desc->origin = this; |
| 275 desc->constant_pool_size = 0; |
275 } | 276 } |
276 | 277 |
277 | 278 |
278 void Assembler::Align(int m) { | 279 void Assembler::Align(int m) { |
279 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 280 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
280 while ((pc_offset() & (m - 1)) != 0) { | 281 while ((pc_offset() & (m - 1)) != 0) { |
281 nop(); | 282 nop(); |
282 } | 283 } |
283 } | 284 } |
284 | 285 |
(...skipping 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3275 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3276 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3276 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); | 3277 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); |
3277 } | 3278 } |
3278 } | 3279 } |
3279 | 3280 |
3280 | 3281 |
3281 } // namespace internal | 3282 } // namespace internal |
3282 } // namespace v8 | 3283 } // namespace v8 |
3283 | 3284 |
3284 #endif // V8_TARGET_ARCH_MIPS64 | 3285 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |