OLD | NEW |
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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 case kArm64Cmp32: | 1271 case kArm64Cmp32: |
1272 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); | 1272 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); |
1273 break; | 1273 break; |
1274 case kArm64Cmn: | 1274 case kArm64Cmn: |
1275 __ Cmn(i.InputOrZeroRegister64(0), i.InputOperand2_64(1)); | 1275 __ Cmn(i.InputOrZeroRegister64(0), i.InputOperand2_64(1)); |
1276 break; | 1276 break; |
1277 case kArm64Cmn32: | 1277 case kArm64Cmn32: |
1278 __ Cmn(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); | 1278 __ Cmn(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); |
1279 break; | 1279 break; |
1280 case kArm64Tst: | 1280 case kArm64Tst: |
1281 __ Tst(i.InputOrZeroRegister64(0), i.InputOperand(1)); | 1281 __ Tst(i.InputOrZeroRegister64(0), i.InputOperand2_64(1)); |
1282 break; | 1282 break; |
1283 case kArm64Tst32: | 1283 case kArm64Tst32: |
1284 __ Tst(i.InputOrZeroRegister32(0), i.InputOperand32(1)); | 1284 __ Tst(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); |
1285 break; | 1285 break; |
1286 case kArm64Float32Cmp: | 1286 case kArm64Float32Cmp: |
1287 if (instr->InputAt(1)->IsFPRegister()) { | 1287 if (instr->InputAt(1)->IsFPRegister()) { |
1288 __ Fcmp(i.InputFloat32Register(0), i.InputFloat32Register(1)); | 1288 __ Fcmp(i.InputFloat32Register(0), i.InputFloat32Register(1)); |
1289 } else { | 1289 } else { |
1290 DCHECK(instr->InputAt(1)->IsImmediate()); | 1290 DCHECK(instr->InputAt(1)->IsImmediate()); |
1291 // 0.0 is the only immediate supported by fcmp instructions. | 1291 // 0.0 is the only immediate supported by fcmp instructions. |
1292 DCHECK(i.InputFloat32(1) == 0.0f); | 1292 DCHECK(i.InputFloat32(1) == 0.0f); |
1293 __ Fcmp(i.InputFloat32Register(0), i.InputFloat32(1)); | 1293 __ Fcmp(i.InputFloat32Register(0), i.InputFloat32(1)); |
1294 } | 1294 } |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 padding_size -= kInstructionSize; | 2177 padding_size -= kInstructionSize; |
2178 } | 2178 } |
2179 } | 2179 } |
2180 } | 2180 } |
2181 | 2181 |
2182 #undef __ | 2182 #undef __ |
2183 | 2183 |
2184 } // namespace compiler | 2184 } // namespace compiler |
2185 } // namespace internal | 2185 } // namespace internal |
2186 } // namespace v8 | 2186 } // namespace v8 |
OLD | NEW |