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

Side by Side Diff: src/ia32/lithium-ia32.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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1188 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1189 BuiltinFunctionId op = instr->op(); 1189 BuiltinFunctionId op = instr->op();
1190 if (op == kMathLog) { 1190 if (op == kMathLog) {
1191 ASSERT(instr->representation().IsDouble()); 1191 ASSERT(instr->representation().IsDouble());
1192 ASSERT(instr->value()->representation().IsDouble()); 1192 ASSERT(instr->value()->representation().IsDouble());
1193 LOperand* context = UseAny(instr->context()); // Not actually used. 1193 LOperand* context = UseAny(instr->context()); // Not actually used.
1194 LOperand* input = UseRegisterAtStart(instr->value()); 1194 LOperand* input = UseRegisterAtStart(instr->value());
1195 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(context, 1195 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(context,
1196 input); 1196 input);
1197 return DefineSameAsFirst(result); 1197 return DefineSameAsFirst(result);
1198 } else if (op == kMathSin || op == kMathCos) { 1198 } else if (op == kMathSin || op == kMathCos || op == kMathTan) {
1199 LOperand* context = UseFixed(instr->context(), esi); 1199 LOperand* context = UseFixed(instr->context(), esi);
1200 LOperand* input = UseFixedDouble(instr->value(), xmm1); 1200 LOperand* input = UseFixedDouble(instr->value(), xmm1);
1201 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(context, 1201 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(context,
1202 input); 1202 input);
1203 return MarkAsCall(DefineFixedDouble(result, xmm1), instr); 1203 return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
1204 } else { 1204 } else {
1205 LOperand* input = UseRegisterAtStart(instr->value()); 1205 LOperand* input = UseRegisterAtStart(instr->value());
1206 LOperand* context = UseAny(instr->context()); // Deferred use by MathAbs. 1206 LOperand* context = UseAny(instr->context()); // Deferred use by MathAbs.
1207 if (op == kMathPowHalf) { 1207 if (op == kMathPowHalf) {
1208 LOperand* temp = TempRegister(); 1208 LOperand* temp = TempRegister();
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
2416 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2416 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2417 LOperand* object = UseRegister(instr->object()); 2417 LOperand* object = UseRegister(instr->object());
2418 LOperand* index = UseTempRegister(instr->index()); 2418 LOperand* index = UseTempRegister(instr->index());
2419 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2419 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2420 } 2420 }
2421 2421
2422 2422
2423 } } // namespace v8::internal 2423 } } // namespace v8::internal
2424 2424
2425 #endif // V8_TARGET_ARCH_IA32 2425 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698