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

Side by Side Diff: src/ia32/assembler-ia32.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 | « src/arm64/assembler-arm64.cc ('k') | src/mips/assembler-mips.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 (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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // Finalize code (at this point overflow() may be true, but the gap ensures 331 // Finalize code (at this point overflow() may be true, but the gap ensures
332 // that we are still not overlapping instructions and relocation info). 332 // that we are still not overlapping instructions and relocation info).
333 reloc_info_writer.Finish(); 333 reloc_info_writer.Finish();
334 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 334 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
335 // Set up code descriptor. 335 // Set up code descriptor.
336 desc->buffer = buffer_; 336 desc->buffer = buffer_;
337 desc->buffer_size = buffer_size_; 337 desc->buffer_size = buffer_size_;
338 desc->instr_size = pc_offset(); 338 desc->instr_size = pc_offset();
339 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 339 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
340 desc->origin = this; 340 desc->origin = this;
341 desc->constant_pool_size = 0;
341 } 342 }
342 343
343 344
344 void Assembler::Align(int m) { 345 void Assembler::Align(int m) {
345 DCHECK(base::bits::IsPowerOfTwo32(m)); 346 DCHECK(base::bits::IsPowerOfTwo32(m));
346 int mask = m - 1; 347 int mask = m - 1;
347 int addr = pc_offset(); 348 int addr = pc_offset();
348 Nop((m - (addr & mask)) & mask); 349 Nop((m - (addr & mask)) & mask);
349 } 350 }
350 351
(...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after
2956 fflush(coverage_log); 2957 fflush(coverage_log);
2957 } 2958 }
2958 } 2959 }
2959 2960
2960 #endif 2961 #endif
2961 2962
2962 } // namespace internal 2963 } // namespace internal
2963 } // namespace v8 2964 } // namespace v8
2964 2965
2965 #endif // V8_TARGET_ARCH_IA32 2966 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698