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/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 break; | 215 break; |
216 case kArchRet: | 216 case kArchRet: |
217 AssembleReturn(); | 217 AssembleReturn(); |
218 break; | 218 break; |
219 case kArchStackPointer: | 219 case kArchStackPointer: |
220 __ mov(i.OutputRegister(), masm()->StackPointer()); | 220 __ mov(i.OutputRegister(), masm()->StackPointer()); |
221 break; | 221 break; |
222 case kArchTruncateDoubleToI: | 222 case kArchTruncateDoubleToI: |
223 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); | 223 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
224 break; | 224 break; |
| 225 case kArm64Float64Ceil: |
| 226 __ Frintp(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 227 break; |
| 228 case kArm64Float64Floor: |
| 229 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 230 break; |
| 231 case kArm64Float64RoundTruncate: |
| 232 __ Frintz(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 233 break; |
| 234 case kArm64Float64RoundTiesAway: |
| 235 __ Frinta(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 236 break; |
225 case kArm64Add: | 237 case kArm64Add: |
226 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2_64(1)); | 238 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2_64(1)); |
227 break; | 239 break; |
228 case kArm64Add32: | 240 case kArm64Add32: |
229 if (FlagsModeField::decode(opcode) != kFlags_none) { | 241 if (FlagsModeField::decode(opcode) != kFlags_none) { |
230 __ Adds(i.OutputRegister32(), i.InputRegister32(0), | 242 __ Adds(i.OutputRegister32(), i.InputRegister32(0), |
231 i.InputOperand2_32(1)); | 243 i.InputOperand2_32(1)); |
232 } else { | 244 } else { |
233 __ Add(i.OutputRegister32(), i.InputRegister32(0), | 245 __ Add(i.OutputRegister32(), i.InputRegister32(0), |
234 i.InputOperand2_32(1)); | 246 i.InputOperand2_32(1)); |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 } | 997 } |
986 } | 998 } |
987 MarkLazyDeoptSite(); | 999 MarkLazyDeoptSite(); |
988 } | 1000 } |
989 | 1001 |
990 #undef __ | 1002 #undef __ |
991 | 1003 |
992 } // namespace compiler | 1004 } // namespace compiler |
993 } // namespace internal | 1005 } // namespace internal |
994 } // namespace v8 | 1006 } // namespace v8 |
OLD | NEW |