Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 1478713002: Set the constant pool size to 0 on architectures that do not use it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698