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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 break; | 363 break; |
364 case kX64Shr: | 364 case kX64Shr: |
365 ASSEMBLE_SHIFT(shrq, 6); | 365 ASSEMBLE_SHIFT(shrq, 6); |
366 break; | 366 break; |
367 case kX64Sar32: | 367 case kX64Sar32: |
368 ASSEMBLE_SHIFT(sarl, 5); | 368 ASSEMBLE_SHIFT(sarl, 5); |
369 break; | 369 break; |
370 case kX64Sar: | 370 case kX64Sar: |
371 ASSEMBLE_SHIFT(sarq, 6); | 371 ASSEMBLE_SHIFT(sarq, 6); |
372 break; | 372 break; |
| 373 case kX64Ror32: |
| 374 ASSEMBLE_SHIFT(rorl, 5); |
| 375 break; |
| 376 case kX64Ror: |
| 377 ASSEMBLE_SHIFT(rorq, 6); |
| 378 break; |
373 case kX64Push: { | 379 case kX64Push: { |
374 RegisterOrOperand input = i.InputRegisterOrOperand(0); | 380 RegisterOrOperand input = i.InputRegisterOrOperand(0); |
375 if (input.type == kRegister) { | 381 if (input.type == kRegister) { |
376 __ pushq(input.reg); | 382 __ pushq(input.reg); |
377 } else { | 383 } else { |
378 __ pushq(input.operand); | 384 __ pushq(input.operand); |
379 } | 385 } |
380 break; | 386 break; |
381 } | 387 } |
382 case kX64PushI: | 388 case kX64PushI: |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 } | 984 } |
979 | 985 |
980 | 986 |
981 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } | 987 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } |
982 | 988 |
983 #undef __ | 989 #undef __ |
984 | 990 |
985 } // namespace internal | 991 } // namespace internal |
986 } // namespace compiler | 992 } // namespace compiler |
987 } // namespace v8 | 993 } // namespace v8 |
OLD | NEW |