OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/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/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 } | 226 } |
227 case kArchJmp: | 227 case kArchJmp: |
228 __ jmp(code_->GetLabel(i.InputBlock(0))); | 228 __ jmp(code_->GetLabel(i.InputBlock(0))); |
229 break; | 229 break; |
230 case kArchNop: | 230 case kArchNop: |
231 // don't emit code for nops. | 231 // don't emit code for nops. |
232 break; | 232 break; |
233 case kArchRet: | 233 case kArchRet: |
234 AssembleReturn(); | 234 AssembleReturn(); |
235 break; | 235 break; |
| 236 case kArchStackPointer: |
| 237 __ movq(i.OutputRegister(), rsp); |
| 238 break; |
236 case kArchTruncateDoubleToI: | 239 case kArchTruncateDoubleToI: |
237 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); | 240 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
238 break; | 241 break; |
239 case kX64Add32: | 242 case kX64Add32: |
240 ASSEMBLE_BINOP(addl); | 243 ASSEMBLE_BINOP(addl); |
241 break; | 244 break; |
242 case kX64Add: | 245 case kX64Add: |
243 ASSEMBLE_BINOP(addq); | 246 ASSEMBLE_BINOP(addq); |
244 break; | 247 break; |
245 case kX64Sub32: | 248 case kX64Sub32: |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 } | 981 } |
979 } | 982 } |
980 MarkLazyDeoptSite(); | 983 MarkLazyDeoptSite(); |
981 } | 984 } |
982 | 985 |
983 #undef __ | 986 #undef __ |
984 | 987 |
985 } // namespace internal | 988 } // namespace internal |
986 } // namespace compiler | 989 } // namespace compiler |
987 } // namespace v8 | 990 } // namespace v8 |
OLD | NEW |