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

Side by Side Diff: src/crankshaft/s390/lithium-s390.cc

Issue 2615683003: s390: optimize MathSqrt (Closed)
Patch Set: Created 3 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/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/s390/macro-assembler-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "src/crankshaft/s390/lithium-s390.h" 5 #include "src/crankshaft/s390/lithium-s390.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 } 1051 }
1052 1052
1053 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1053 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1054 DCHECK(instr->representation().IsDouble()); 1054 DCHECK(instr->representation().IsDouble());
1055 DCHECK(instr->value()->representation().IsDouble()); 1055 DCHECK(instr->value()->representation().IsDouble());
1056 LOperand* input = UseFixedDouble(instr->value(), d0); 1056 LOperand* input = UseFixedDouble(instr->value(), d0);
1057 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr); 1057 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr);
1058 } 1058 }
1059 1059
1060 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1060 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1061 LOperand* input = UseRegisterAtStart(instr->value()); 1061 LOperand* input = UseAtStart(instr->value());
1062 LMathSqrt* result = new (zone()) LMathSqrt(input); 1062 LMathSqrt* result = new (zone()) LMathSqrt(input);
1063 return DefineAsRegister(result); 1063 return DefineAsRegister(result);
1064 } 1064 }
1065 1065
1066 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1066 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
1067 LOperand* input = UseRegisterAtStart(instr->value()); 1067 LOperand* input = UseRegisterAtStart(instr->value());
1068 LMathPowHalf* result = new (zone()) LMathPowHalf(input); 1068 LMathPowHalf* result = new (zone()) LMathPowHalf(input);
1069 return DefineAsRegister(result); 1069 return DefineAsRegister(result);
1070 } 1070 }
1071 1071
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
2147 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2147 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2148 LOperand* object = UseRegister(instr->object()); 2148 LOperand* object = UseRegister(instr->object());
2149 LOperand* index = UseTempRegister(instr->index()); 2149 LOperand* index = UseTempRegister(instr->index());
2150 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2150 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2151 LInstruction* result = DefineSameAsFirst(load); 2151 LInstruction* result = DefineSameAsFirst(load);
2152 return AssignPointerMap(result); 2152 return AssignPointerMap(result);
2153 } 2153 }
2154 2154
2155 } // namespace internal 2155 } // namespace internal
2156 } // namespace v8 2156 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698