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/ast/scopes.h" | 7 #include "src/ast/scopes.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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 __ Popcntq(i.OutputRegister(), i.InputOperand(0)); | 996 __ Popcntq(i.OutputRegister(), i.InputOperand(0)); |
997 } | 997 } |
998 break; | 998 break; |
999 case kX64Popcnt32: | 999 case kX64Popcnt32: |
1000 if (instr->InputAt(0)->IsRegister()) { | 1000 if (instr->InputAt(0)->IsRegister()) { |
1001 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); | 1001 __ Popcntl(i.OutputRegister(), i.InputRegister(0)); |
1002 } else { | 1002 } else { |
1003 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); | 1003 __ Popcntl(i.OutputRegister(), i.InputOperand(0)); |
1004 } | 1004 } |
1005 break; | 1005 break; |
| 1006 case kX87Float64Log: |
| 1007 __ subq(rsp, Immediate(kDoubleSize)); |
| 1008 __ Movsd(Operand(rsp, 0), i.InputDoubleRegister(0)); |
| 1009 __ fldln2(); |
| 1010 __ fld_d(Operand(rsp, 0)); |
| 1011 __ fyl2x(); |
| 1012 __ fstp_d(Operand(rsp, 0)); |
| 1013 __ Movsd(i.OutputDoubleRegister(), Operand(rsp, 0)); |
| 1014 __ addq(rsp, Immediate(kDoubleSize)); |
| 1015 break; |
1006 case kSSEFloat32Cmp: | 1016 case kSSEFloat32Cmp: |
1007 ASSEMBLE_SSE_BINOP(Ucomiss); | 1017 ASSEMBLE_SSE_BINOP(Ucomiss); |
1008 break; | 1018 break; |
1009 case kSSEFloat32Add: | 1019 case kSSEFloat32Add: |
1010 ASSEMBLE_SSE_BINOP(addss); | 1020 ASSEMBLE_SSE_BINOP(addss); |
1011 break; | 1021 break; |
1012 case kSSEFloat32Sub: | 1022 case kSSEFloat32Sub: |
1013 ASSEMBLE_SSE_BINOP(subss); | 1023 ASSEMBLE_SSE_BINOP(subss); |
1014 break; | 1024 break; |
1015 case kSSEFloat32Mul: | 1025 case kSSEFloat32Mul: |
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2309 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2319 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2310 __ Nop(padding_size); | 2320 __ Nop(padding_size); |
2311 } | 2321 } |
2312 } | 2322 } |
2313 | 2323 |
2314 #undef __ | 2324 #undef __ |
2315 | 2325 |
2316 } // namespace compiler | 2326 } // namespace compiler |
2317 } // namespace internal | 2327 } // namespace internal |
2318 } // namespace v8 | 2328 } // namespace v8 |
OLD | NEW |