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

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

Issue 24278004: ARM: Tweak Math.exp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | 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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 LInstruction* LChunkBuilder::DoMathTan(HUnaryMathOperation* instr) { 1233 LInstruction* LChunkBuilder::DoMathTan(HUnaryMathOperation* instr) {
1234 LOperand* input = UseFixedDouble(instr->value(), d2); 1234 LOperand* input = UseFixedDouble(instr->value(), d2);
1235 LMathTan* result = new(zone()) LMathTan(input); 1235 LMathTan* result = new(zone()) LMathTan(input);
1236 return MarkAsCall(DefineFixedDouble(result, d2), instr); 1236 return MarkAsCall(DefineFixedDouble(result, d2), instr);
1237 } 1237 }
1238 1238
1239 1239
1240 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { 1240 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) {
1241 ASSERT(instr->representation().IsDouble()); 1241 ASSERT(instr->representation().IsDouble());
1242 ASSERT(instr->value()->representation().IsDouble()); 1242 ASSERT(instr->value()->representation().IsDouble());
1243 LOperand* input = UseTempRegister(instr->value()); 1243 LOperand* input = UseRegister(instr->value());
1244 LOperand* temp1 = TempRegister(); 1244 LOperand* temp1 = TempRegister();
1245 LOperand* temp2 = TempRegister(); 1245 LOperand* temp2 = TempRegister();
1246 LOperand* double_temp = FixedTemp(d3); // Chosen by fair dice roll. 1246 LOperand* double_temp = FixedTemp(d3); // Chosen by fair dice roll.
1247 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2); 1247 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2);
1248 return DefineAsRegister(result); 1248 return DefineAsRegister(result);
1249 } 1249 }
1250 1250
1251 1251
1252 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { 1252 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) {
1253 LOperand* input = UseRegister(instr->value()); 1253 LOperand* input = UseRegister(instr->value());
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 2601
2602 2602
2603 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2603 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2604 LOperand* object = UseRegister(instr->object()); 2604 LOperand* object = UseRegister(instr->object());
2605 LOperand* index = UseRegister(instr->index()); 2605 LOperand* index = UseRegister(instr->index());
2606 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2606 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2607 } 2607 }
2608 2608
2609 2609
2610 } } // namespace v8::internal 2610 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698