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

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

Issue 2785773002: [turbofan] introduce Int32/64AbsWithOverflow optional operator (Closed)
Patch Set: add base impl Created 3 years, 8 months 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/compiler/x87/instruction-selector-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 // A Disassembler object is used to disassemble a block of code instruction by 5 // A Disassembler object is used to disassemble a block of code instruction by
6 // instruction. The default implementation of the NameConverter object can be 6 // instruction. The default implementation of the NameConverter object can be
7 // overriden to modify register names or to do symbol lookup on addresses. 7 // overriden to modify register names or to do symbol lookup on addresses.
8 // 8 //
9 // The example below will disassemble a block of code and print it to stdout. 9 // The example below will disassemble a block of code and print it to stdout.
10 // 10 //
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 case FIDBRA: 1060 case FIDBRA:
1061 Format(instr, "fidbra\t'f5,'m2,'f6,'m3"); 1061 Format(instr, "fidbra\t'f5,'m2,'f6,'m3");
1062 break; 1062 break;
1063 // TRAP4 is used in calling to native function. it will not be generated 1063 // TRAP4 is used in calling to native function. it will not be generated
1064 // in native code. 1064 // in native code.
1065 case TRAP4: { 1065 case TRAP4: {
1066 Format(instr, "trap4"); 1066 Format(instr, "trap4");
1067 break; 1067 break;
1068 } 1068 }
1069 case LPGR: 1069 case LPGR:
1070 Format(instr, "lpgr\t'r1, 'r2"); 1070 Format(instr, "lpgr\t'r5,'r6");
1071 break; 1071 break;
1072 case LPGFR: 1072 case LPGFR:
1073 Format(instr, "lpgfr\t'r1,'r2"); 1073 Format(instr, "lpgfr\t'r5,'r6");
1074 break; 1074 break;
1075 default: 1075 default:
1076 return false; 1076 return false;
1077 } 1077 }
1078 return true; 1078 return true;
1079 } 1079 }
1080 1080
1081 // Disassembles Six Byte S390 Instructions 1081 // Disassembles Six Byte S390 Instructions
1082 // @return true if successfully decoded 1082 // @return true if successfully decoded
1083 bool Decoder::DecodeSixByte(Instruction* instr) { 1083 bool Decoder::DecodeSixByte(Instruction* instr) {
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 byte* prev_pc = pc; 1564 byte* prev_pc = pc;
1565 pc += d.InstructionDecode(buffer, pc); 1565 pc += d.InstructionDecode(buffer, pc);
1566 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc), 1566 v8::internal::PrintF(f, "%p %08x %s\n", static_cast<void*>(prev_pc),
1567 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1567 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1568 } 1568 }
1569 } 1569 }
1570 1570
1571 } // namespace disasm 1571 } // namespace disasm
1572 1572
1573 #endif // V8_TARGET_ARCH_S390 1573 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698