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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 197 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
198 break; | 198 break; |
199 case kArchNop: | 199 case kArchNop: |
200 // don't emit code for nops. | 200 // don't emit code for nops. |
201 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 201 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
202 break; | 202 break; |
203 case kArchRet: | 203 case kArchRet: |
204 AssembleReturn(); | 204 AssembleReturn(); |
205 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 205 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
206 break; | 206 break; |
| 207 case kArchStackPointer: |
| 208 __ mov(i.OutputRegister(), sp); |
| 209 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 210 break; |
207 case kArchTruncateDoubleToI: | 211 case kArchTruncateDoubleToI: |
208 __ TruncateDoubleToI(i.OutputRegister(), i.InputFloat64Register(0)); | 212 __ TruncateDoubleToI(i.OutputRegister(), i.InputFloat64Register(0)); |
209 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 213 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
210 break; | 214 break; |
211 case kArmAdd: | 215 case kArmAdd: |
212 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 216 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
213 i.OutputSBit()); | 217 i.OutputSBit()); |
214 break; | 218 break; |
215 case kArmAnd: | 219 case kArmAnd: |
216 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), | 220 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 } | 919 } |
916 } | 920 } |
917 MarkLazyDeoptSite(); | 921 MarkLazyDeoptSite(); |
918 } | 922 } |
919 | 923 |
920 #undef __ | 924 #undef __ |
921 | 925 |
922 } // namespace compiler | 926 } // namespace compiler |
923 } // namespace internal | 927 } // namespace internal |
924 } // namespace v8 | 928 } // namespace v8 |
OLD | NEW |