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

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

Issue 8816010: Fix presubmit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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
« no previous file with comments | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1146 return MarkAsCall(DefineFixed(result, r0), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1147 } 1147 }
1148 1148
1149 1149
1150 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1150 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1151 BuiltinFunctionId op = instr->op(); 1151 BuiltinFunctionId op = instr->op();
1152 if (op == kMathLog || op == kMathSin || op == kMathCos) { 1152 if (op == kMathLog || op == kMathSin || op == kMathCos) {
1153 LOperand* input = UseFixedDouble(instr->value(), d2); 1153 LOperand* input = UseFixedDouble(instr->value(), d2);
1154 LUnaryMathOperation* result = new LUnaryMathOperation(input, NULL); 1154 LUnaryMathOperation* result = new LUnaryMathOperation(input, NULL);
1155 return MarkAsCall(DefineFixedDouble(result, d2), instr); 1155 return MarkAsCall(DefineFixedDouble(result, d2), instr);
1156 } if (op == kMathPowHalf) { 1156 } else if (op == kMathPowHalf) {
1157 LOperand* input = UseFixedDouble(instr->value(), d2); 1157 LOperand* input = UseFixedDouble(instr->value(), d2);
1158 LOperand* temp = FixedTemp(d3); 1158 LOperand* temp = FixedTemp(d3);
1159 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp); 1159 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp);
1160 return DefineFixedDouble(result, d2); 1160 return DefineFixedDouble(result, d2);
1161 } else { 1161 } else {
1162 LOperand* input = UseRegisterAtStart(instr->value()); 1162 LOperand* input = UseRegisterAtStart(instr->value());
1163 LOperand* temp = (op == kMathFloor) ? TempRegister() : NULL; 1163 LOperand* temp = (op == kMathFloor) ? TempRegister() : NULL;
1164 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp); 1164 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp);
1165 switch (op) { 1165 switch (op) {
1166 case kMathAbs: 1166 case kMathAbs:
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 2236
2237 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2237 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2238 LOperand* key = UseRegisterAtStart(instr->key()); 2238 LOperand* key = UseRegisterAtStart(instr->key());
2239 LOperand* object = UseRegisterAtStart(instr->object()); 2239 LOperand* object = UseRegisterAtStart(instr->object());
2240 LIn* result = new LIn(key, object); 2240 LIn* result = new LIn(key, object);
2241 return MarkAsCall(DefineFixed(result, r0), instr); 2241 return MarkAsCall(DefineFixed(result, r0), instr);
2242 } 2242 }
2243 2243
2244 2244
2245 } } // namespace v8::internal 2245 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698