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

Side by Side Diff: src/mips/assembler-mips.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/ia32/assembler-ia32.cc ('k') | src/mips64/assembler-mips64.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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 nop(); 289 nop();
290 ClearCompactBranchState(); 290 ClearCompactBranchState();
291 } 291 }
292 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap. 292 DCHECK(pc_ <= reloc_info_writer.pos()); // No overlap.
293 // Set up code descriptor. 293 // Set up code descriptor.
294 desc->buffer = buffer_; 294 desc->buffer = buffer_;
295 desc->buffer_size = buffer_size_; 295 desc->buffer_size = buffer_size_;
296 desc->instr_size = pc_offset(); 296 desc->instr_size = pc_offset();
297 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); 297 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
298 desc->origin = this; 298 desc->origin = this;
299 desc->constant_pool_size = 0;
299 } 300 }
300 301
301 302
302 void Assembler::Align(int m) { 303 void Assembler::Align(int m) {
303 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m)); 304 DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
304 if (IsPrevInstrCompactBranch()) { 305 if (IsPrevInstrCompactBranch()) {
305 nop(); 306 nop();
306 ClearCompactBranchState(); 307 ClearCompactBranchState();
307 } 308 }
308 while ((pc_offset() & (m - 1)) != 0) { 309 while ((pc_offset() & (m - 1)) != 0) {
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 3048
3048 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3049 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3049 CpuFeatures::FlushICache(pc, 2 * sizeof(int32_t)); 3050 CpuFeatures::FlushICache(pc, 2 * sizeof(int32_t));
3050 } 3051 }
3051 } 3052 }
3052 3053
3053 } // namespace internal 3054 } // namespace internal
3054 } // namespace v8 3055 } // namespace v8
3055 3056
3056 #endif // V8_TARGET_ARCH_MIPS 3057 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698