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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 break; | 911 break; |
912 case kImm64Handle: | 912 case kImm64Handle: |
913 __ Move(dst, imm.handle); | 913 __ Move(dst, imm.handle); |
914 break; | 914 break; |
915 } | 915 } |
916 if (destination->IsStackSlot()) { | 916 if (destination->IsStackSlot()) { |
917 __ movq(g.ToOperand(destination), kScratchRegister); | 917 __ movq(g.ToOperand(destination), kScratchRegister); |
918 } | 918 } |
919 } else { | 919 } else { |
920 __ movq(kScratchRegister, | 920 __ movq(kScratchRegister, |
921 BitCast<uint64_t, double>(g.ToDouble(constant_source))); | 921 bit_cast<uint64_t, double>(g.ToDouble(constant_source))); |
922 if (destination->IsDoubleRegister()) { | 922 if (destination->IsDoubleRegister()) { |
923 __ movq(g.ToDoubleRegister(destination), kScratchRegister); | 923 __ movq(g.ToDoubleRegister(destination), kScratchRegister); |
924 } else { | 924 } else { |
925 DCHECK(destination->IsDoubleStackSlot()); | 925 DCHECK(destination->IsDoubleStackSlot()); |
926 __ movq(g.ToOperand(destination), kScratchRegister); | 926 __ movq(g.ToOperand(destination), kScratchRegister); |
927 } | 927 } |
928 } | 928 } |
929 } else if (source->IsDoubleRegister()) { | 929 } else if (source->IsDoubleRegister()) { |
930 XMMRegister src = g.ToDoubleRegister(source); | 930 XMMRegister src = g.ToDoubleRegister(source); |
931 if (destination->IsDoubleRegister()) { | 931 if (destination->IsDoubleRegister()) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 } | 999 } |
1000 | 1000 |
1001 | 1001 |
1002 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } | 1002 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } |
1003 | 1003 |
1004 #undef __ | 1004 #undef __ |
1005 | 1005 |
1006 } // namespace internal | 1006 } // namespace internal |
1007 } // namespace compiler | 1007 } // namespace compiler |
1008 } // namespace v8 | 1008 } // namespace v8 |
OLD | NEW |