OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 __ movq(FieldOperand(rax, HeapObject::kMapOffset), | 1003 __ movq(FieldOperand(rax, HeapObject::kMapOffset), |
1004 heap_number_map); | 1004 heap_number_map); |
1005 __ cvtqsi2sd(xmm0, rbx); | 1005 __ cvtqsi2sd(xmm0, rbx); |
1006 __ movsd(FieldOperand(rax, HeapNumber::kValueOffset), xmm0); | 1006 __ movsd(FieldOperand(rax, HeapNumber::kValueOffset), xmm0); |
1007 __ Ret(); | 1007 __ Ret(); |
1008 | 1008 |
1009 __ bind(&allocation_failed); | 1009 __ bind(&allocation_failed); |
1010 // We need tagged values in rdx and rax for the following code, | 1010 // We need tagged values in rdx and rax for the following code, |
1011 // not int32 in rax and rcx. | 1011 // not int32 in rax and rcx. |
1012 __ Integer32ToSmi(rax, rcx); | 1012 __ Integer32ToSmi(rax, rcx); |
1013 __ Integer32ToSmi(rdx, rax); | 1013 __ Integer32ToSmi(rdx, rbx); |
1014 __ jmp(allocation_failure); | 1014 __ jmp(allocation_failure); |
1015 } | 1015 } |
1016 break; | 1016 break; |
1017 } | 1017 } |
1018 default: UNREACHABLE(); break; | 1018 default: UNREACHABLE(); break; |
1019 } | 1019 } |
1020 // No fall-through from this generated code. | 1020 // No fall-through from this generated code. |
1021 if (FLAG_debug_code) { | 1021 if (FLAG_debug_code) { |
1022 __ Abort("Unexpected fall-through in " | 1022 __ Abort("Unexpected fall-through in " |
1023 "TypeRecordingBinaryStub::GenerateFloatingPointCode."); | 1023 "TypeRecordingBinaryStub::GenerateFloatingPointCode."); |
(...skipping 4098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5122 __ Drop(1); | 5122 __ Drop(1); |
5123 __ ret(2 * kPointerSize); | 5123 __ ret(2 * kPointerSize); |
5124 } | 5124 } |
5125 | 5125 |
5126 | 5126 |
5127 #undef __ | 5127 #undef __ |
5128 | 5128 |
5129 } } // namespace v8::internal | 5129 } } // namespace v8::internal |
5130 | 5130 |
5131 #endif // V8_TARGET_ARCH_X64 | 5131 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |