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

Side by Side Diff: src/ic/s390/ic-s390.cc

Issue 2589063002: s390: clean up RR/RRE/RRD/RIL format in Assembler (Closed)
Patch Set: remove comments Created 4 years 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
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/s390/assembler-s390.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/s390/full-codegen-s390.cc ('k') | src/s390/assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698