OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 } | 941 } |
942 | 942 |
943 | 943 |
944 void MacroAssembler::Cvtlsi2sd(XMMRegister dst, const Operand& src) { | 944 void MacroAssembler::Cvtlsi2sd(XMMRegister dst, const Operand& src) { |
945 xorps(dst, dst); | 945 xorps(dst, dst); |
946 cvtlsi2sd(dst, src); | 946 cvtlsi2sd(dst, src); |
947 } | 947 } |
948 | 948 |
949 | 949 |
950 void MacroAssembler::Load(Register dst, const Operand& src, Representation r) { | 950 void MacroAssembler::Load(Register dst, const Operand& src, Representation r) { |
| 951 ASSERT(!r.IsDouble()); |
951 if (r.IsByte()) { | 952 if (r.IsByte()) { |
952 movzxbl(dst, src); | 953 movzxbl(dst, src); |
953 } else if (r.IsInteger32()) { | 954 } else if (r.IsInteger32()) { |
954 movl(dst, src); | 955 movl(dst, src); |
955 } else { | 956 } else { |
956 movq(dst, src); | 957 movq(dst, src); |
957 } | 958 } |
958 } | 959 } |
959 | 960 |
960 | 961 |
961 void MacroAssembler::Store(const Operand& dst, Register src, Representation r) { | 962 void MacroAssembler::Store(const Operand& dst, Register src, Representation r) { |
| 963 ASSERT(!r.IsDouble()); |
962 if (r.IsByte()) { | 964 if (r.IsByte()) { |
963 movb(dst, src); | 965 movb(dst, src); |
964 } else if (r.IsInteger32()) { | 966 } else if (r.IsInteger32()) { |
965 movl(dst, src); | 967 movl(dst, src); |
966 } else { | 968 } else { |
967 movq(dst, src); | 969 movq(dst, src); |
968 } | 970 } |
969 } | 971 } |
970 | 972 |
971 | 973 |
(...skipping 3955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4927 j(greater, &no_memento_available); | 4929 j(greater, &no_memento_available); |
4928 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), | 4930 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), |
4929 Heap::kAllocationMementoMapRootIndex); | 4931 Heap::kAllocationMementoMapRootIndex); |
4930 bind(&no_memento_available); | 4932 bind(&no_memento_available); |
4931 } | 4933 } |
4932 | 4934 |
4933 | 4935 |
4934 } } // namespace v8::internal | 4936 } } // namespace v8::internal |
4935 | 4937 |
4936 #endif // V8_TARGET_ARCH_X64 | 4938 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |