| OLD | NEW |
| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 return (((instr & kOpcodeMask) == EXT2) && | 330 return (((instr & kOpcodeMask) == EXT2) && |
| 331 ((instr & kExt2OpcodeMask) == CMP)); | 331 ((instr & kExt2OpcodeMask) == CMP)); |
| 332 } | 332 } |
| 333 | 333 |
| 334 | 334 |
| 335 bool Assembler::IsRlwinm(Instr instr) { | 335 bool Assembler::IsRlwinm(Instr instr) { |
| 336 return ((instr & kOpcodeMask) == RLWINMX); | 336 return ((instr & kOpcodeMask) == RLWINMX); |
| 337 } | 337 } |
| 338 | 338 |
| 339 | 339 |
| 340 bool Assembler::IsAndi(Instr instr) { return ((instr & kOpcodeMask) == ANDIx); } |
| 341 |
| 342 |
| 340 #if V8_TARGET_ARCH_PPC64 | 343 #if V8_TARGET_ARCH_PPC64 |
| 341 bool Assembler::IsRldicl(Instr instr) { | 344 bool Assembler::IsRldicl(Instr instr) { |
| 342 return (((instr & kOpcodeMask) == EXT5) && | 345 return (((instr & kOpcodeMask) == EXT5) && |
| 343 ((instr & kExt5OpcodeMask) == RLDICL)); | 346 ((instr & kExt5OpcodeMask) == RLDICL)); |
| 344 } | 347 } |
| 345 #endif | 348 #endif |
| 346 | 349 |
| 347 | 350 |
| 348 bool Assembler::IsCmpImmediate(Instr instr) { | 351 bool Assembler::IsCmpImmediate(Instr instr) { |
| 349 return ((instr & kOpcodeMask) == CMPI); | 352 return ((instr & kOpcodeMask) == CMPI); |
| (...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2435 pc_offset() + kMaxCondBranchReach - kMaxBlockTrampolineSectionSize; | 2438 pc_offset() + kMaxCondBranchReach - kMaxBlockTrampolineSectionSize; |
| 2436 } | 2439 } |
| 2437 return; | 2440 return; |
| 2438 } | 2441 } |
| 2439 | 2442 |
| 2440 | 2443 |
| 2441 } // namespace internal | 2444 } // namespace internal |
| 2442 } // namespace v8 | 2445 } // namespace v8 |
| 2443 | 2446 |
| 2444 #endif // V8_TARGET_ARCH_PPC | 2447 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |