OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_S390 | 5 #if V8_TARGET_ARCH_S390 |
6 | 6 |
7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 #ifndef V8_TARGET_ARCH_S390X | 351 #ifndef V8_TARGET_ARCH_S390X |
352 patcher.masm()->nop(); | 352 patcher.masm()->nop(); |
353 #endif | 353 #endif |
354 } | 354 } |
355 | 355 |
356 Condition cc = al; | 356 Condition cc = al; |
357 if (Instruction::S390OpcodeValue(branch_address) == BRC) { | 357 if (Instruction::S390OpcodeValue(branch_address) == BRC) { |
358 cc = static_cast<Condition>((branch_instr & 0x00f00000) >> 20); | 358 cc = static_cast<Condition>((branch_instr & 0x00f00000) >> 20); |
359 DCHECK((cc == ne) || (cc == eq)); | 359 DCHECK((cc == ne) || (cc == eq)); |
360 cc = (cc == ne) ? eq : ne; | 360 cc = (cc == ne) ? eq : ne; |
361 patcher.masm()->brc(cc, Operand((branch_instr & 0xffff) << 1)); | 361 patcher.masm()->brc(cc, Operand(branch_instr & 0xffff)); |
362 } else if (Instruction::S390OpcodeValue(branch_address) == BRCL) { | 362 } else if (Instruction::S390OpcodeValue(branch_address) == BRCL) { |
363 cc = static_cast<Condition>( | 363 cc = static_cast<Condition>( |
364 (branch_instr & (static_cast<uint64_t>(0x00f0) << 32)) >> 36); | 364 (branch_instr & (static_cast<uint64_t>(0x00f0) << 32)) >> 36); |
365 DCHECK((cc == ne) || (cc == eq)); | 365 DCHECK((cc == ne) || (cc == eq)); |
366 cc = (cc == ne) ? eq : ne; | 366 cc = (cc == ne) ? eq : ne; |
367 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1)); | 367 patcher.masm()->brcl(cc, Operand(branch_instr & 0xffffffff)); |
368 } else { | 368 } else { |
369 DCHECK(false); | 369 DCHECK(false); |
370 } | 370 } |
371 } | 371 } |
372 | 372 |
373 } // namespace internal | 373 } // namespace internal |
374 } // namespace v8 | 374 } // namespace v8 |
375 | 375 |
376 #endif // V8_TARGET_ARCH_S390 | 376 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |