| 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 29 matching lines...) Expand all Loading... |
| 40 #include "src/s390/assembler-s390.h" | 40 #include "src/s390/assembler-s390.h" |
| 41 | 41 |
| 42 #include "src/assembler.h" | 42 #include "src/assembler.h" |
| 43 #include "src/debug/debug.h" | 43 #include "src/debug/debug.h" |
| 44 | 44 |
| 45 namespace v8 { | 45 namespace v8 { |
| 46 namespace internal { | 46 namespace internal { |
| 47 | 47 |
| 48 bool CpuFeatures::SupportsCrankshaft() { return true; } | 48 bool CpuFeatures::SupportsCrankshaft() { return true; } |
| 49 | 49 |
| 50 bool CpuFeatures::SupportsSimd128() { return false; } |
| 51 |
| 50 void RelocInfo::apply(intptr_t delta) { | 52 void RelocInfo::apply(intptr_t delta) { |
| 51 // Absolute code pointer inside code object moves with the code object. | 53 // Absolute code pointer inside code object moves with the code object. |
| 52 if (IsInternalReference(rmode_)) { | 54 if (IsInternalReference(rmode_)) { |
| 53 // Jump table entry | 55 // Jump table entry |
| 54 Address target = Memory::Address_at(pc_); | 56 Address target = Memory::Address_at(pc_); |
| 55 Memory::Address_at(pc_) = target + delta; | 57 Memory::Address_at(pc_) = target + delta; |
| 56 } else if (IsCodeTarget(rmode_)) { | 58 } else if (IsCodeTarget(rmode_)) { |
| 57 SixByteInstr instr = | 59 SixByteInstr instr = |
| 58 Instruction::InstructionBits(reinterpret_cast<const byte*>(pc_)); | 60 Instruction::InstructionBits(reinterpret_cast<const byte*>(pc_)); |
| 59 int32_t dis = static_cast<int32_t>(instr & 0xFFFFFFFF) * 2 // halfwords | 61 int32_t dis = static_cast<int32_t>(instr & 0xFFFFFFFF) * 2 // halfwords |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 570 } |
| 569 #endif | 571 #endif |
| 570 } | 572 } |
| 571 if (!patched) UNREACHABLE(); | 573 if (!patched) UNREACHABLE(); |
| 572 } | 574 } |
| 573 | 575 |
| 574 } // namespace internal | 576 } // namespace internal |
| 575 } // namespace v8 | 577 } // namespace v8 |
| 576 | 578 |
| 577 #endif // V8_S390_ASSEMBLER_S390_INL_H_ | 579 #endif // V8_S390_ASSEMBLER_S390_INL_H_ |
| OLD | NEW |