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

Side by Side Diff: src/arm/lithium-arm.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 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1163 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1164 LOperand* function = UseFixed(instr->function(), r1); 1164 LOperand* function = UseFixed(instr->function(), r1);
1165 argument_count_ -= instr->argument_count(); 1165 argument_count_ -= instr->argument_count();
1166 LInvokeFunction* result = new(zone()) LInvokeFunction(function); 1166 LInvokeFunction* result = new(zone()) LInvokeFunction(function);
1167 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1167 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1168 } 1168 }
1169 1169
1170 1170
1171 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1171 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1172 BuiltinFunctionId op = instr->op(); 1172 BuiltinFunctionId op = instr->op();
1173 if (op == kMathLog || op == kMathSin || op == kMathCos) { 1173 if (op == kMathLog || op == kMathSin || op == kMathCos || op == kMathTan) {
1174 LOperand* input = UseFixedDouble(instr->value(), d2); 1174 LOperand* input = UseFixedDouble(instr->value(), d2);
1175 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, NULL); 1175 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, NULL);
1176 return MarkAsCall(DefineFixedDouble(result, d2), instr); 1176 return MarkAsCall(DefineFixedDouble(result, d2), instr);
1177 } else if (op == kMathPowHalf) { 1177 } else if (op == kMathPowHalf) {
1178 LOperand* input = UseFixedDouble(instr->value(), d2); 1178 LOperand* input = UseFixedDouble(instr->value(), d2);
1179 LOperand* temp = FixedTemp(d3); 1179 LOperand* temp = FixedTemp(d3);
1180 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, temp); 1180 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input, temp);
1181 return DefineFixedDouble(result, d2); 1181 return DefineFixedDouble(result, d2);
1182 } else { 1182 } else {
1183 LOperand* input = UseRegisterAtStart(instr->value()); 1183 LOperand* input = UseRegisterAtStart(instr->value());
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 2300
2301 2301
2302 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2302 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2303 LOperand* object = UseRegister(instr->object()); 2303 LOperand* object = UseRegister(instr->object());
2304 LOperand* index = UseRegister(instr->index()); 2304 LOperand* index = UseRegister(instr->index());
2305 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2305 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2306 } 2306 }
2307 2307
2308 2308
2309 } } // namespace v8::internal 2309 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/codegen.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698