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

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

Issue 1155673005: Fix issues with Arm's use of embedded constant pools (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo in comment Created 5 years, 6 months 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
« src/ppc/assembler-ppc.cc ('K') | « src/x87/assembler-x87.h ('k') | no next file » | 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 257
258 void Assembler::Align(int m) { 258 void Assembler::Align(int m) {
259 DCHECK(base::bits::IsPowerOfTwo32(m)); 259 DCHECK(base::bits::IsPowerOfTwo32(m));
260 int mask = m - 1; 260 int mask = m - 1;
261 int addr = pc_offset(); 261 int addr = pc_offset();
262 Nop((m - (addr & mask)) & mask); 262 Nop((m - (addr & mask)) & mask);
263 } 263 }
264 264
265 265
266 void Assembler::DataAlign(int m) {
267 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
268 while ((pc_offset() & (m - 1)) != 0) {
269 db(0);
270 }
271 }
272
273
266 bool Assembler::IsNop(Address addr) { 274 bool Assembler::IsNop(Address addr) {
267 Address a = addr; 275 Address a = addr;
268 while (*a == 0x66) a++; 276 while (*a == 0x66) a++;
269 if (*a == 0x90) return true; 277 if (*a == 0x90) return true;
270 if (a[0] == 0xf && a[1] == 0x1f) return true; 278 if (a[0] == 0xf && a[1] == 0x1f) return true;
271 return false; 279 return false;
272 } 280 }
273 281
274 282
275 void Assembler::Nop(int bytes) { 283 void Assembler::Nop(int bytes) {
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 fflush(coverage_log); 2083 fflush(coverage_log);
2076 } 2084 }
2077 } 2085 }
2078 2086
2079 #endif 2087 #endif
2080 2088
2081 } // namespace internal 2089 } // namespace internal
2082 } // namespace v8 2090 } // namespace v8
2083 2091
2084 #endif // V8_TARGET_ARCH_X87 2092 #endif // V8_TARGET_ARCH_X87
OLDNEW
« src/ppc/assembler-ppc.cc ('K') | « src/x87/assembler-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698