OLD | NEW |
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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 value()->PrintNameTo(stream); | 1303 value()->PrintNameTo(stream); |
1304 stream->Add(" (%p)", *map()); | 1304 stream->Add(" (%p)", *map()); |
1305 HControlInstruction::PrintDataTo(stream); | 1305 HControlInstruction::PrintDataTo(stream); |
1306 } | 1306 } |
1307 | 1307 |
1308 | 1308 |
1309 const char* HUnaryMathOperation::OpName() const { | 1309 const char* HUnaryMathOperation::OpName() const { |
1310 switch (op()) { | 1310 switch (op()) { |
1311 case kMathFloor: return "floor"; | 1311 case kMathFloor: return "floor"; |
1312 case kMathRound: return "round"; | 1312 case kMathRound: return "round"; |
1313 case kMathCeil: return "ceil"; | |
1314 case kMathAbs: return "abs"; | 1313 case kMathAbs: return "abs"; |
1315 case kMathLog: return "log"; | 1314 case kMathLog: return "log"; |
1316 case kMathSin: return "sin"; | 1315 case kMathSin: return "sin"; |
1317 case kMathCos: return "cos"; | 1316 case kMathCos: return "cos"; |
1318 case kMathTan: return "tan"; | 1317 case kMathTan: return "tan"; |
1319 case kMathASin: return "asin"; | |
1320 case kMathACos: return "acos"; | |
1321 case kMathATan: return "atan"; | |
1322 case kMathExp: return "exp"; | 1318 case kMathExp: return "exp"; |
1323 case kMathSqrt: return "sqrt"; | 1319 case kMathSqrt: return "sqrt"; |
1324 default: break; | 1320 case kMathPowHalf: return "pow-half"; |
| 1321 default: |
| 1322 UNREACHABLE(); |
| 1323 return NULL; |
1325 } | 1324 } |
1326 return "(unknown operation)"; | |
1327 } | 1325 } |
1328 | 1326 |
1329 | 1327 |
1330 void HUnaryMathOperation::PrintDataTo(StringStream* stream) { | 1328 void HUnaryMathOperation::PrintDataTo(StringStream* stream) { |
1331 const char* name = OpName(); | 1329 const char* name = OpName(); |
1332 stream->Add("%s ", name); | 1330 stream->Add("%s ", name); |
1333 value()->PrintNameTo(stream); | 1331 value()->PrintNameTo(stream); |
1334 } | 1332 } |
1335 | 1333 |
1336 | 1334 |
(...skipping 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3606 | 3604 |
3607 | 3605 |
3608 void HCheckFunction::Verify() { | 3606 void HCheckFunction::Verify() { |
3609 HInstruction::Verify(); | 3607 HInstruction::Verify(); |
3610 ASSERT(HasNoUses()); | 3608 ASSERT(HasNoUses()); |
3611 } | 3609 } |
3612 | 3610 |
3613 #endif | 3611 #endif |
3614 | 3612 |
3615 } } // namespace v8::internal | 3613 } } // namespace v8::internal |
OLD | NEW |