| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 293 |
| 294 void Assembler::GetCode(CodeDesc* desc) { | 294 void Assembler::GetCode(CodeDesc* desc) { |
| 295 EmitRelocations(); | 295 EmitRelocations(); |
| 296 | 296 |
| 297 // Set up code descriptor. | 297 // Set up code descriptor. |
| 298 desc->buffer = buffer_; | 298 desc->buffer = buffer_; |
| 299 desc->buffer_size = buffer_size_; | 299 desc->buffer_size = buffer_size_; |
| 300 desc->instr_size = pc_offset(); | 300 desc->instr_size = pc_offset(); |
| 301 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 301 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 302 desc->origin = this; | 302 desc->origin = this; |
| 303 desc->unwinding_info_size = 0; |
| 304 desc->unwinding_info = nullptr; |
| 303 } | 305 } |
| 304 | 306 |
| 305 void Assembler::Align(int m) { | 307 void Assembler::Align(int m) { |
| 306 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 308 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
| 307 while ((pc_offset() & (m - 1)) != 0) { | 309 while ((pc_offset() & (m - 1)) != 0) { |
| 308 nop(0); | 310 nop(0); |
| 309 } | 311 } |
| 310 } | 312 } |
| 311 | 313 |
| 312 void Assembler::CodeTargetAlign() { Align(8); } | 314 void Assembler::CodeTargetAlign() { Align(8); } |
| (...skipping 2765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3078 | 3080 |
| 3079 reloc_info_writer.Write(&rinfo); | 3081 reloc_info_writer.Write(&rinfo); |
| 3080 } | 3082 } |
| 3081 | 3083 |
| 3082 reloc_info_writer.Finish(); | 3084 reloc_info_writer.Finish(); |
| 3083 } | 3085 } |
| 3084 | 3086 |
| 3085 } // namespace internal | 3087 } // namespace internal |
| 3086 } // namespace v8 | 3088 } // namespace v8 |
| 3087 #endif // V8_TARGET_ARCH_S390 | 3089 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |