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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 void Assembler::GetCode(CodeDesc* desc) { | 312 void Assembler::GetCode(CodeDesc* desc) { |
313 EmitForbiddenSlotInstruction(); | 313 EmitForbiddenSlotInstruction(); |
314 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. | 314 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. |
315 // Set up code descriptor. | 315 // Set up code descriptor. |
316 desc->buffer = buffer_; | 316 desc->buffer = buffer_; |
317 desc->buffer_size = buffer_size_; | 317 desc->buffer_size = buffer_size_; |
318 desc->instr_size = pc_offset(); | 318 desc->instr_size = pc_offset(); |
319 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 319 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
320 desc->origin = this; | 320 desc->origin = this; |
321 desc->constant_pool_size = 0; | 321 desc->constant_pool_size = 0; |
| 322 desc->unwinding_info_size = 0; |
| 323 desc->unwinding_info = nullptr; |
322 } | 324 } |
323 | 325 |
324 | 326 |
325 void Assembler::Align(int m) { | 327 void Assembler::Align(int m) { |
326 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 328 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
327 EmitForbiddenSlotInstruction(); | 329 EmitForbiddenSlotInstruction(); |
328 while ((pc_offset() & (m - 1)) != 0) { | 330 while ((pc_offset() & (m - 1)) != 0) { |
329 nop(); | 331 nop(); |
330 } | 332 } |
331 } | 333 } |
(...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3177 | 3179 |
3178 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3180 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3179 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3181 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
3180 } | 3182 } |
3181 } | 3183 } |
3182 | 3184 |
3183 } // namespace internal | 3185 } // namespace internal |
3184 } // namespace v8 | 3186 } // namespace v8 |
3185 | 3187 |
3186 #endif // V8_TARGET_ARCH_MIPS | 3188 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |