| 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/ast/scopes.h" | 9 #include "src/ast/scopes.h" | 
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" | 
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1032       __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); | 1032       __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); | 
| 1033       break; | 1033       break; | 
| 1034     case kArm64Float64ToInt32: | 1034     case kArm64Float64ToInt32: | 
| 1035       __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); | 1035       __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); | 
| 1036       break; | 1036       break; | 
| 1037     case kArm64Float64ToUint32: | 1037     case kArm64Float64ToUint32: | 
| 1038       __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); | 1038       __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); | 
| 1039       break; | 1039       break; | 
| 1040     case kArm64Float32ToInt64: | 1040     case kArm64Float32ToInt64: | 
| 1041       __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0)); | 1041       __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0)); | 
|  | 1042       if (i.OutputCount() > 1) { | 
|  | 1043         __ Cmp(i.OutputRegister(0), 1); | 
|  | 1044         __ Ccmp(i.OutputRegister(0), -1, VFlag, vc); | 
|  | 1045         __ Fccmp(i.InputFloat32Register(0), i.InputFloat32Register(0), VFlag, | 
|  | 1046                  vc); | 
|  | 1047         __ Cset(i.OutputRegister(1), vc); | 
|  | 1048       } | 
| 1042       break; | 1049       break; | 
| 1043     case kArm64Float64ToInt64: | 1050     case kArm64Float64ToInt64: | 
| 1044       __ Fcvtzs(i.OutputRegister(0), i.InputDoubleRegister(0)); | 1051       __ Fcvtzs(i.OutputRegister(0), i.InputDoubleRegister(0)); | 
| 1045       if (i.OutputCount() > 1) { | 1052       if (i.OutputCount() > 1) { | 
| 1046         __ Cmp(i.OutputRegister(0), 1); | 1053         __ Cmp(i.OutputRegister(0), 1); | 
| 1047         __ Ccmp(i.OutputRegister(0), -1, VFlag, vc); | 1054         __ Ccmp(i.OutputRegister(0), -1, VFlag, vc); | 
| 1048         __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc); | 1055         __ Fccmp(i.InputDoubleRegister(0), i.InputDoubleRegister(0), VFlag, vc); | 
| 1049         __ Cset(i.OutputRegister(1), vc); | 1056         __ Cset(i.OutputRegister(1), vc); | 
| 1050       } | 1057       } | 
| 1051       break; | 1058       break; | 
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1603       padding_size -= kInstructionSize; | 1610       padding_size -= kInstructionSize; | 
| 1604     } | 1611     } | 
| 1605   } | 1612   } | 
| 1606 } | 1613 } | 
| 1607 | 1614 | 
| 1608 #undef __ | 1615 #undef __ | 
| 1609 | 1616 | 
| 1610 }  // namespace compiler | 1617 }  // namespace compiler | 
| 1611 }  // namespace internal | 1618 }  // namespace internal | 
| 1612 }  // namespace v8 | 1619 }  // namespace v8 | 
| OLD | NEW | 
|---|