Chromium Code Reviews

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

Issue 113343003: Remove the last remnants of the TranscendentalCache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: MIPS port. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1183 matching lines...)
1194 case kMathSqrt: return DoMathSqrt(instr); 1194 case kMathSqrt: return DoMathSqrt(instr);
1195 case kMathPowHalf: return DoMathPowHalf(instr); 1195 case kMathPowHalf: return DoMathPowHalf(instr);
1196 default: 1196 default:
1197 UNREACHABLE(); 1197 UNREACHABLE();
1198 return NULL; 1198 return NULL;
1199 } 1199 }
1200 } 1200 }
1201 1201
1202 1202
1203 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { 1203 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) {
1204 LOperand* input = UseFixedDouble(instr->value(), f4); 1204 LOperand* input = UseRegister(instr->value());
Yang 2013/12/13 15:54:39 We are not using a fixed double register anymore.
Sven Panne 2013/12/16 08:20:23 This seems to be the case, and it is done like thi
1205 LMathLog* result = new(zone()) LMathLog(input); 1205 return DefineAsRegister(new(zone()) LMathLog(input));
1206 return MarkAsCall(DefineFixedDouble(result, f4), instr);
1207 } 1206 }
1208 1207
1209 1208
1210 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1209 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1211 ASSERT(instr->representation().IsDouble()); 1210 ASSERT(instr->representation().IsDouble());
1212 ASSERT(instr->value()->representation().IsDouble()); 1211 ASSERT(instr->value()->representation().IsDouble());
1213 LOperand* input = UseRegister(instr->value()); 1212 LOperand* input = UseRegister(instr->value());
1214 LOperand* temp1 = TempRegister(); 1213 LOperand* temp1 = TempRegister();
1215 LOperand* temp2 = TempRegister(); 1214 LOperand* temp2 = TempRegister();
1216 LOperand* double_temp = FixedTemp(f6); // Chosen by fair dice roll. 1215 LOperand* double_temp = FixedTemp(f6); // Chosen by fair dice roll.
(...skipping 1357 matching lines...)
2574 2573
2575 2574
2576 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2575 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2577 LOperand* object = UseRegister(instr->object()); 2576 LOperand* object = UseRegister(instr->object());
2578 LOperand* index = UseRegister(instr->index()); 2577 LOperand* index = UseRegister(instr->index());
2579 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2578 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2580 } 2579 }
2581 2580
2582 2581
2583 } } // namespace v8::internal 2582 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine