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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2128 } | 2128 } |
2129 } | 2129 } |
2130 __ b(cond, tlabel); | 2130 __ b(cond, tlabel); |
2131 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. | 2131 if (!branch->fallthru) __ b(flabel); // no fallthru to flabel. |
2132 } | 2132 } |
2133 | 2133 |
2134 void CodeGenerator::AssembleArchJump(RpoNumber target) { | 2134 void CodeGenerator::AssembleArchJump(RpoNumber target) { |
2135 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); | 2135 if (!IsNextInAssemblyOrder(target)) __ b(GetLabel(target)); |
2136 } | 2136 } |
2137 | 2137 |
| 2138 void CodeGenerator::AssembleArchTrap(Instruction* instr, |
| 2139 FlagsCondition condition) { |
| 2140 UNREACHABLE(); |
| 2141 } |
| 2142 |
2138 // Assembles boolean materializations after an instruction. | 2143 // Assembles boolean materializations after an instruction. |
2139 void CodeGenerator::AssembleArchBoolean(Instruction* instr, | 2144 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
2140 FlagsCondition condition) { | 2145 FlagsCondition condition) { |
2141 S390OperandConverter i(this, instr); | 2146 S390OperandConverter i(this, instr); |
2142 ArchOpcode op = instr->arch_opcode(); | 2147 ArchOpcode op = instr->arch_opcode(); |
2143 bool check_unordered = (op == kS390_CmpDouble || op == kS390_CmpFloat); | 2148 bool check_unordered = (op == kS390_CmpDouble || op == kS390_CmpFloat); |
2144 | 2149 |
2145 // Overflow checked for add/sub only. | 2150 // Overflow checked for add/sub only. |
2146 DCHECK((condition != kOverflow && condition != kNotOverflow) || | 2151 DCHECK((condition != kOverflow && condition != kNotOverflow) || |
2147 (op == kS390_Add32 || kS390_Add64 || op == kS390_Sub32 || | 2152 (op == kS390_Add32 || kS390_Add64 || op == kS390_Sub32 || |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2560 padding_size -= 2; | 2565 padding_size -= 2; |
2561 } | 2566 } |
2562 } | 2567 } |
2563 } | 2568 } |
2564 | 2569 |
2565 #undef __ | 2570 #undef __ |
2566 | 2571 |
2567 } // namespace compiler | 2572 } // namespace compiler |
2568 } // namespace internal | 2573 } // namespace internal |
2569 } // namespace v8 | 2574 } // namespace v8 |
OLD | NEW |