Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: test/cctest/test-code-stubs-x64.cc

Issue 1391963005: [x64] Use vmovapd and vmovsd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win compile. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/test-assembler-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Rrdistribution and use in source and binary forms, with or without 2 // Rrdistribution 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 // * Rrdistributions of source code must retain the above copyright 6 // * Rrdistributions 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 // * Rrdistributions in binary form must reproduce the above 8 // * Rrdistributions 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { 81 for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) {
82 Register reg = 82 Register reg =
83 Register::from_code(config->GetAllocatableGeneralCode(reg_num)); 83 Register::from_code(config->GetAllocatableGeneralCode(reg_num));
84 if (!reg.is(rsp) && !reg.is(rbp) && !reg.is(destination_reg)) { 84 if (!reg.is(rsp) && !reg.is(rbp) && !reg.is(destination_reg)) {
85 __ pushq(reg); 85 __ pushq(reg);
86 } 86 }
87 } 87 }
88 88
89 // Put the double argument into the designated double argument slot. 89 // Put the double argument into the designated double argument slot.
90 __ subq(rsp, Immediate(kDoubleSize)); 90 __ subq(rsp, Immediate(kDoubleSize));
91 __ movsd(MemOperand(rsp, 0), xmm0); 91 __ Movsd(MemOperand(rsp, 0), xmm0);
92 92
93 // Call through to the actual stub 93 // Call through to the actual stub
94 __ Call(start, RelocInfo::EXTERNAL_REFERENCE); 94 __ Call(start, RelocInfo::EXTERNAL_REFERENCE);
95 95
96 __ addq(rsp, Immediate(kDoubleSize)); 96 __ addq(rsp, Immediate(kDoubleSize));
97 97
98 // Make sure no registers have been unexpectedly clobbered 98 // Make sure no registers have been unexpectedly clobbered
99 for (--reg_num; reg_num >= 0; --reg_num) { 99 for (--reg_num; reg_num >= 0; --reg_num) {
100 Register reg = 100 Register reg =
101 Register::from_code(config->GetAllocatableGeneralCode(reg_num)); 101 Register::from_code(config->GetAllocatableGeneralCode(reg_num));
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { 149 for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) {
150 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { 150 for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) {
151 RunAllTruncationTests( 151 RunAllTruncationTests(
152 MakeConvertDToIFuncTrampoline(isolate, 152 MakeConvertDToIFuncTrampoline(isolate,
153 source_registers[s], 153 source_registers[s],
154 dest_registers[d])); 154 dest_registers[d]));
155 } 155 }
156 } 156 }
157 } 157 }
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698