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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 860003002: [x86] Use AVX in Crankshaft when available. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-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 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 DCHECK(instr->right()->representation().IsDouble()); 758 DCHECK(instr->right()->representation().IsDouble());
759 if (op == Token::MOD) { 759 if (op == Token::MOD) {
760 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 760 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
761 LOperand* right = UseRegisterAtStart(instr->BetterRightOperand()); 761 LOperand* right = UseRegisterAtStart(instr->BetterRightOperand());
762 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); 762 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right);
763 return MarkAsCall(DefineSameAsFirst(result), instr); 763 return MarkAsCall(DefineSameAsFirst(result), instr);
764 } else { 764 } else {
765 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 765 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
766 LOperand* right = UseRegisterAtStart(instr->BetterRightOperand()); 766 LOperand* right = UseRegisterAtStart(instr->BetterRightOperand());
767 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); 767 LArithmeticD* result = new(zone()) LArithmeticD(op, left, right);
768 return DefineSameAsFirst(result); 768 return CpuFeatures::IsSupported(AVX) ? DefineAsRegister(result)
769 : DefineSameAsFirst(result);
769 } 770 }
770 } 771 }
771 772
772 773
773 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op, 774 LInstruction* LChunkBuilder::DoArithmeticT(Token::Value op,
774 HBinaryOperation* instr) { 775 HBinaryOperation* instr) {
775 HValue* left = instr->left(); 776 HValue* left = instr->left();
776 HValue* right = instr->right(); 777 HValue* right = instr->right();
777 DCHECK(left->representation().IsTagged()); 778 DCHECK(left->representation().IsTagged());
778 DCHECK(right->representation().IsTagged()); 779 DCHECK(right->representation().IsTagged());
(...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after
2713 LOperand* function = UseRegisterAtStart(instr->function()); 2714 LOperand* function = UseRegisterAtStart(instr->function());
2714 LAllocateBlockContext* result = 2715 LAllocateBlockContext* result =
2715 new(zone()) LAllocateBlockContext(context, function); 2716 new(zone()) LAllocateBlockContext(context, function);
2716 return MarkAsCall(DefineFixed(result, esi), instr); 2717 return MarkAsCall(DefineFixed(result, esi), instr);
2717 } 2718 }
2718 2719
2719 2720
2720 } } // namespace v8::internal 2721 } } // namespace v8::internal
2721 2722
2722 #endif // V8_TARGET_ARCH_IA32 2723 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698