| Index: src/ppc/assembler-ppc.cc
|
| diff --git a/src/ppc/assembler-ppc.cc b/src/ppc/assembler-ppc.cc
|
| index cce578e9f6cde0c2519afdf5d72311a2b64668ce..38c7fd82b7bbe096725621d39a531f973491ed80 100644
|
| --- a/src/ppc/assembler-ppc.cc
|
| +++ b/src/ppc/assembler-ppc.cc
|
| @@ -244,17 +244,9 @@ void Assembler::GetCode(CodeDesc* desc) {
|
|
|
|
|
| void Assembler::Align(int m) {
|
| -#if V8_TARGET_ARCH_PPC64
|
| - DCHECK(m >= 4 && base::bits::IsPowerOfTwo64(m));
|
| -#else
|
| DCHECK(m >= 4 && base::bits::IsPowerOfTwo32(m));
|
| -#endif
|
| - // First ensure instruction alignment
|
| - while (pc_offset() & (kInstrSize - 1)) {
|
| - db(0);
|
| - }
|
| - // Then pad to requested alignedment with nops
|
| - while (pc_offset() & (m - 1)) {
|
| + DCHECK((pc_offset() & (kInstrSize - 1)) == 0);
|
| + while ((pc_offset() & (m - 1)) != 0) {
|
| nop();
|
| }
|
| }
|
|
|