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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 break; | 1146 break; |
1147 } | 1147 } |
1148 case kMips64TruncUwD: { | 1148 case kMips64TruncUwD: { |
1149 FPURegister scratch = kScratchDoubleReg; | 1149 FPURegister scratch = kScratchDoubleReg; |
1150 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. | 1150 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
1151 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 1151 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
1152 break; | 1152 break; |
1153 } | 1153 } |
1154 case kMips64TruncUlS: { | 1154 case kMips64TruncUlS: { |
1155 FPURegister scratch = kScratchDoubleReg; | 1155 FPURegister scratch = kScratchDoubleReg; |
| 1156 Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; |
1156 // TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function. | 1157 // TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function. |
1157 __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 1158 __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch, |
| 1159 result); |
1158 break; | 1160 break; |
1159 } | 1161 } |
1160 case kMips64TruncUlD: { | 1162 case kMips64TruncUlD: { |
1161 FPURegister scratch = kScratchDoubleReg; | 1163 FPURegister scratch = kScratchDoubleReg; |
1162 Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; | 1164 Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; |
1163 // TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function. | 1165 // TODO(plind): Fix wrong param order of Trunc_ul_d() macro-asm function. |
1164 __ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(0), scratch, | 1166 __ Trunc_ul_d(i.InputDoubleRegister(0), i.OutputRegister(0), scratch, |
1165 result); | 1167 result); |
1166 break; | 1168 break; |
1167 } | 1169 } |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1883 padding_size -= v8::internal::Assembler::kInstrSize; | 1885 padding_size -= v8::internal::Assembler::kInstrSize; |
1884 } | 1886 } |
1885 } | 1887 } |
1886 } | 1888 } |
1887 | 1889 |
1888 #undef __ | 1890 #undef __ |
1889 | 1891 |
1890 } // namespace compiler | 1892 } // namespace compiler |
1891 } // namespace internal | 1893 } // namespace internal |
1892 } // namespace v8 | 1894 } // namespace v8 |
OLD | NEW |