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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 1413183002: [x64] Emit vmovss when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('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 // 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 4225 matching lines...) Expand 10 before | Expand all | Expand 10 after
4236 Operand operand(BuildFastArrayOperand( 4236 Operand operand(BuildFastArrayOperand(
4237 instr->elements(), 4237 instr->elements(),
4238 key, 4238 key,
4239 instr->hydrogen()->key()->representation(), 4239 instr->hydrogen()->key()->representation(),
4240 elements_kind, 4240 elements_kind,
4241 instr->base_offset())); 4241 instr->base_offset()));
4242 4242
4243 if (elements_kind == FLOAT32_ELEMENTS) { 4243 if (elements_kind == FLOAT32_ELEMENTS) {
4244 XMMRegister value(ToDoubleRegister(instr->value())); 4244 XMMRegister value(ToDoubleRegister(instr->value()));
4245 __ Cvtsd2ss(value, value); 4245 __ Cvtsd2ss(value, value);
4246 __ movss(operand, value); 4246 __ Movss(operand, value);
4247 } else if (elements_kind == FLOAT64_ELEMENTS) { 4247 } else if (elements_kind == FLOAT64_ELEMENTS) {
4248 __ Movsd(operand, ToDoubleRegister(instr->value())); 4248 __ Movsd(operand, ToDoubleRegister(instr->value()));
4249 } else { 4249 } else {
4250 Register value(ToRegister(instr->value())); 4250 Register value(ToRegister(instr->value()));
4251 switch (elements_kind) { 4251 switch (elements_kind) {
4252 case INT8_ELEMENTS: 4252 case INT8_ELEMENTS:
4253 case UINT8_ELEMENTS: 4253 case UINT8_ELEMENTS:
4254 case UINT8_CLAMPED_ELEMENTS: 4254 case UINT8_CLAMPED_ELEMENTS:
4255 __ movb(operand, value); 4255 __ movb(operand, value);
4256 break; 4256 break;
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after
5904 RecordSafepoint(Safepoint::kNoLazyDeopt); 5904 RecordSafepoint(Safepoint::kNoLazyDeopt);
5905 } 5905 }
5906 5906
5907 5907
5908 #undef __ 5908 #undef __
5909 5909
5910 } // namespace internal 5910 } // namespace internal
5911 } // namespace v8 5911 } // namespace v8
5912 5912
5913 #endif // V8_TARGET_ARCH_X64 5913 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698