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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 void Assembler::GetCode(CodeDesc* desc) { | 321 void Assembler::GetCode(CodeDesc* desc) { |
322 EmitRelocations(); | 322 EmitRelocations(); |
323 | 323 |
324 // Set up code descriptor. | 324 // Set up code descriptor. |
325 desc->buffer = buffer_; | 325 desc->buffer = buffer_; |
326 desc->buffer_size = buffer_size_; | 326 desc->buffer_size = buffer_size_; |
327 desc->instr_size = pc_offset(); | 327 desc->instr_size = pc_offset(); |
328 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 328 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
329 desc->origin = this; | 329 desc->origin = this; |
| 330 desc->unwinding_info_size = 0; |
| 331 desc->unwinding_info = nullptr; |
330 } | 332 } |
331 | 333 |
332 void Assembler::Align(int m) { | 334 void Assembler::Align(int m) { |
333 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 335 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
334 while ((pc_offset() & (m - 1)) != 0) { | 336 while ((pc_offset() & (m - 1)) != 0) { |
335 nop(0); | 337 nop(0); |
336 } | 338 } |
337 } | 339 } |
338 | 340 |
339 void Assembler::CodeTargetAlign() { Align(8); } | 341 void Assembler::CodeTargetAlign() { Align(8); } |
(...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3105 | 3107 |
3106 reloc_info_writer.Write(&rinfo); | 3108 reloc_info_writer.Write(&rinfo); |
3107 } | 3109 } |
3108 | 3110 |
3109 reloc_info_writer.Finish(); | 3111 reloc_info_writer.Finish(); |
3110 } | 3112 } |
3111 | 3113 |
3112 } // namespace internal | 3114 } // namespace internal |
3113 } // namespace v8 | 3115 } // namespace v8 |
3114 #endif // V8_TARGET_ARCH_S390 | 3116 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |