OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 movsxbq(dst, src); | 914 movsxbq(dst, src); |
915 } else if (r.IsUInteger8()) { | 915 } else if (r.IsUInteger8()) { |
916 movzxbl(dst, src); | 916 movzxbl(dst, src); |
917 } else if (r.IsInteger16()) { | 917 } else if (r.IsInteger16()) { |
918 movsxwq(dst, src); | 918 movsxwq(dst, src); |
919 } else if (r.IsUInteger16()) { | 919 } else if (r.IsUInteger16()) { |
920 movzxwl(dst, src); | 920 movzxwl(dst, src); |
921 } else if (r.IsInteger32()) { | 921 } else if (r.IsInteger32()) { |
922 movl(dst, src); | 922 movl(dst, src); |
923 } else { | 923 } else { |
| 924 if (r.IsHeapObject()) { |
| 925 AssertNotSmi(src); |
| 926 } else if (r.IsSmi()) { |
| 927 AssertSmi(src); |
| 928 } |
924 movp(dst, src); | 929 movp(dst, src); |
925 } | 930 } |
926 } | 931 } |
927 | 932 |
928 | 933 |
929 void MacroAssembler::Store(const Operand& dst, Register src, Representation r) { | 934 void MacroAssembler::Store(const Operand& dst, Register src, Representation r) { |
930 ASSERT(!r.IsDouble()); | 935 ASSERT(!r.IsDouble()); |
931 if (r.IsInteger8() || r.IsUInteger8()) { | 936 if (r.IsInteger8() || r.IsUInteger8()) { |
932 movb(dst, src); | 937 movb(dst, src); |
933 } else if (r.IsInteger16() || r.IsUInteger16()) { | 938 } else if (r.IsInteger16() || r.IsUInteger16()) { |
(...skipping 4312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5246 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); | 5251 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); |
5247 movl(rax, dividend); | 5252 movl(rax, dividend); |
5248 shrl(rax, Immediate(31)); | 5253 shrl(rax, Immediate(31)); |
5249 addl(rdx, rax); | 5254 addl(rdx, rax); |
5250 } | 5255 } |
5251 | 5256 |
5252 | 5257 |
5253 } } // namespace v8::internal | 5258 } } // namespace v8::internal |
5254 | 5259 |
5255 #endif // V8_TARGET_ARCH_X64 | 5260 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |