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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 break; | 396 break; |
397 } | 397 } |
398 case kArchRet: | 398 case kArchRet: |
399 AssembleReturn(); | 399 AssembleReturn(); |
400 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 400 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
401 break; | 401 break; |
402 case kArchStackPointer: | 402 case kArchStackPointer: |
403 __ mov(i.OutputRegister(), sp); | 403 __ mov(i.OutputRegister(), sp); |
404 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 404 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
405 break; | 405 break; |
| 406 case kArchFramePointer: |
| 407 __ mov(i.OutputRegister(), fp); |
| 408 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 409 break; |
406 case kArchTruncateDoubleToI: | 410 case kArchTruncateDoubleToI: |
407 __ TruncateDoubleToI(i.OutputRegister(), i.InputFloat64Register(0)); | 411 __ TruncateDoubleToI(i.OutputRegister(), i.InputFloat64Register(0)); |
408 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 412 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
409 break; | 413 break; |
410 case kArmAdd: | 414 case kArmAdd: |
411 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 415 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
412 i.OutputSBit()); | 416 i.OutputSBit()); |
413 break; | 417 break; |
414 case kArmAnd: | 418 case kArmAnd: |
415 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 419 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 } | 1218 } |
1215 } | 1219 } |
1216 MarkLazyDeoptSite(); | 1220 MarkLazyDeoptSite(); |
1217 } | 1221 } |
1218 | 1222 |
1219 #undef __ | 1223 #undef __ |
1220 | 1224 |
1221 } // namespace compiler | 1225 } // namespace compiler |
1222 } // namespace internal | 1226 } // namespace internal |
1223 } // namespace v8 | 1227 } // namespace v8 |
OLD | NEW |