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

Side by Side Diff: src/x64/lithium-x64.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
« src/x64/code-stubs-x64.cc ('K') | « src/x64/codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1156 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1157 LOperand* function = UseFixed(instr->function(), rdi); 1157 LOperand* function = UseFixed(instr->function(), rdi);
1158 argument_count_ -= instr->argument_count(); 1158 argument_count_ -= instr->argument_count();
1159 LInvokeFunction* result = new(zone()) LInvokeFunction(function); 1159 LInvokeFunction* result = new(zone()) LInvokeFunction(function);
1160 return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1160 return MarkAsCall(DefineFixed(result, rax), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1161 } 1161 }
1162 1162
1163 1163
1164 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1164 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1165 BuiltinFunctionId op = instr->op(); 1165 BuiltinFunctionId op = instr->op();
1166 if (op == kMathLog || op == kMathSin || op == kMathCos) { 1166 if (op == kMathLog || op == kMathSin || op == kMathCos || op == kMathTan) {
1167 LOperand* input = UseFixedDouble(instr->value(), xmm1); 1167 LOperand* input = UseFixedDouble(instr->value(), xmm1);
1168 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input); 1168 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input);
1169 return MarkAsCall(DefineFixedDouble(result, xmm1), instr); 1169 return MarkAsCall(DefineFixedDouble(result, xmm1), instr);
1170 } else { 1170 } else {
1171 LOperand* input = UseRegisterAtStart(instr->value()); 1171 LOperand* input = UseRegisterAtStart(instr->value());
1172 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input); 1172 LUnaryMathOperation* result = new(zone()) LUnaryMathOperation(input);
1173 switch (op) { 1173 switch (op) {
1174 case kMathAbs: 1174 case kMathAbs:
1175 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1175 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1176 case kMathFloor: 1176 case kMathFloor:
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
2301 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2301 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2302 LOperand* object = UseRegister(instr->object()); 2302 LOperand* object = UseRegister(instr->object());
2303 LOperand* index = UseTempRegister(instr->index()); 2303 LOperand* index = UseTempRegister(instr->index());
2304 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2304 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2305 } 2305 }
2306 2306
2307 2307
2308 } } // namespace v8::internal 2308 } } // namespace v8::internal
2309 2309
2310 #endif // V8_TARGET_ARCH_X64 2310 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/code-stubs-x64.cc ('K') | « src/x64/codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698