| OLD | NEW |
| 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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 LOperand* temp = (op == kMathFloor) ? TempRegister() : NULL; | 1197 LOperand* temp = (op == kMathFloor) ? TempRegister() : NULL; |
| 1198 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp); | 1198 LUnaryMathOperation* result = new LUnaryMathOperation(input, temp); |
| 1199 switch (op) { | 1199 switch (op) { |
| 1200 case kMathAbs: | 1200 case kMathAbs: |
| 1201 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 1201 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
| 1202 case kMathFloor: | 1202 case kMathFloor: |
| 1203 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); | 1203 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| 1204 case kMathSqrt: | 1204 case kMathSqrt: |
| 1205 return DefineSameAsFirst(result); | 1205 return DefineSameAsFirst(result); |
| 1206 case kMathRound: | 1206 case kMathRound: |
| 1207 Abort("MathRound LUnaryMathOperation not implemented"); | 1207 return AssignEnvironment(DefineAsRegister(result)); |
| 1208 return NULL; | |
| 1209 case kMathPowHalf: | 1208 case kMathPowHalf: |
| 1210 Abort("MathPowHalf LUnaryMathOperation not implemented"); | 1209 Abort("MathPowHalf LUnaryMathOperation not implemented"); |
| 1211 return NULL; | 1210 return NULL; |
| 1212 case kMathLog: | 1211 case kMathLog: |
| 1213 Abort("MathLog LUnaryMathOperation not implemented"); | 1212 Abort("MathLog LUnaryMathOperation not implemented"); |
| 1214 return NULL; | 1213 return NULL; |
| 1215 case kMathCos: | 1214 case kMathCos: |
| 1216 Abort("MathCos LUnaryMathOperation not implemented"); | 1215 Abort("MathCos LUnaryMathOperation not implemented"); |
| 1217 return NULL; | 1216 return NULL; |
| 1218 case kMathSin: | 1217 case kMathSin: |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2001 | 2000 |
| 2002 | 2001 |
| 2003 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2002 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2004 HEnvironment* outer = current_block_->last_environment()->outer(); | 2003 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2005 current_block_->UpdateEnvironment(outer); | 2004 current_block_->UpdateEnvironment(outer); |
| 2006 return NULL; | 2005 return NULL; |
| 2007 } | 2006 } |
| 2008 | 2007 |
| 2009 | 2008 |
| 2010 } } // namespace v8::internal | 2009 } } // namespace v8::internal |
| OLD | NEW |