OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
5 // met: | 5 // met: |
6 // | 6 // |
7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
10 // copyright notice, this list of conditions and the following | 10 // copyright notice, this list of conditions and the following |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 582 |
583 // Set up code descriptor. | 583 // Set up code descriptor. |
584 if (desc) { | 584 if (desc) { |
585 desc->buffer = reinterpret_cast<byte*>(buffer_); | 585 desc->buffer = reinterpret_cast<byte*>(buffer_); |
586 desc->buffer_size = buffer_size_; | 586 desc->buffer_size = buffer_size_; |
587 desc->instr_size = pc_offset(); | 587 desc->instr_size = pc_offset(); |
588 desc->reloc_size = | 588 desc->reloc_size = |
589 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) - | 589 static_cast<int>((reinterpret_cast<byte*>(buffer_) + buffer_size_) - |
590 reloc_info_writer.pos()); | 590 reloc_info_writer.pos()); |
591 desc->origin = this; | 591 desc->origin = this; |
| 592 desc->constant_pool_size = 0; |
592 } | 593 } |
593 } | 594 } |
594 | 595 |
595 | 596 |
596 void Assembler::Align(int m) { | 597 void Assembler::Align(int m) { |
597 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); | 598 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); |
598 while ((pc_offset() & (m - 1)) != 0) { | 599 while ((pc_offset() & (m - 1)) != 0) { |
599 nop(); | 600 nop(); |
600 } | 601 } |
601 } | 602 } |
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3135 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); | 3136 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); |
3136 DCHECK((target_offset >> 48) == 0); | 3137 DCHECK((target_offset >> 48) == 0); |
3137 add(rd, rd, scratch); | 3138 add(rd, rd, scratch); |
3138 } | 3139 } |
3139 | 3140 |
3140 | 3141 |
3141 } // namespace internal | 3142 } // namespace internal |
3142 } // namespace v8 | 3143 } // namespace v8 |
3143 | 3144 |
3144 #endif // V8_TARGET_ARCH_ARM64 | 3145 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |