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

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

Issue 9583037: Reland r10908 (Ensure consistent result of transcendental function0.) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1162 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1163 LOperand* function = UseFixed(instr->function(), a1); 1163 LOperand* function = UseFixed(instr->function(), a1);
1164 argument_count_ -= instr->argument_count(); 1164 argument_count_ -= instr->argument_count();
1165 LInvokeFunction* result = new(zone()) LInvokeFunction(function); 1165 LInvokeFunction* result = new(zone()) LInvokeFunction(function);
1166 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1166 return MarkAsCall(DefineFixed(result, v0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1167 } 1167 }
1168 1168
1169 1169
1170 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1170 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1171 BuiltinFunctionId op = instr->op(); 1171 BuiltinFunctionId op = instr->op();
1172 if (op == kMathLog || op == kMathSin || op == kMathCos) { 1172 if (op == kMathLog || op == kMathSin || op == kMathCos || op == kMathTan) {
1173 LOperand* input = UseFixedDouble(instr->value(), f4); 1173 LOperand* input = UseFixedDouble(instr->value(), f4);
1174 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, NULL); 1174 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, NULL);
1175 return MarkAsCall(DefineFixedDouble(result, f4), instr); 1175 return MarkAsCall(DefineFixedDouble(result, f4), instr);
1176 } else if (op == kMathPowHalf) { 1176 } else if (op == kMathPowHalf) {
1177 // Input cannot be the same as the result. 1177 // Input cannot be the same as the result.
1178 // See lithium-codegen-mips.cc::DoMathPowHalf. 1178 // See lithium-codegen-mips.cc::DoMathPowHalf.
1179 LOperand* input = UseFixedDouble(instr->value(), f8); 1179 LOperand* input = UseFixedDouble(instr->value(), f8);
1180 LOperand* temp = FixedTemp(f6); 1180 LOperand* temp = FixedTemp(f6);
1181 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, temp); 1181 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, temp);
1182 return DefineFixedDouble(result, f4); 1182 return DefineFixedDouble(result, f4);
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 2306
2307 2307
2308 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2308 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2309 LOperand* object = UseRegister(instr->object()); 2309 LOperand* object = UseRegister(instr->object());
2310 LOperand* index = UseRegister(instr->index()); 2310 LOperand* index = UseRegister(instr->index());
2311 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2311 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2312 } 2312 }
2313 2313
2314 2314
2315 } } // namespace v8::internal 2315 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698