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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 default: return ""; | 502 default: return ""; |
503 } | 503 } |
504 } | 504 } |
505 | 505 |
506 | 506 |
507 bool HValue::CanReplaceWithDummyUses() { | 507 bool HValue::CanReplaceWithDummyUses() { |
508 return FLAG_unreachable_code_elimination && | 508 return FLAG_unreachable_code_elimination && |
509 !(block()->IsReachable() || | 509 !(block()->IsReachable() || |
510 IsBlockEntry() || | 510 IsBlockEntry() || |
511 IsControlInstruction() || | 511 IsControlInstruction() || |
| 512 IsArgumentsObject() || |
512 IsCapturedObject() || | 513 IsCapturedObject() || |
513 IsSimulate() || | 514 IsSimulate() || |
514 IsEnterInlined() || | 515 IsEnterInlined() || |
515 IsLeaveInlined()); | 516 IsLeaveInlined()); |
516 } | 517 } |
517 | 518 |
518 | 519 |
519 bool HValue::IsInteger32Constant() { | 520 bool HValue::IsInteger32Constant() { |
520 return IsConstant() && HConstant::cast(this)->HasInteger32Value(); | 521 return IsConstant() && HConstant::cast(this)->HasInteger32Value(); |
521 } | 522 } |
(...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4726 break; | 4727 break; |
4727 case kExternalMemory: | 4728 case kExternalMemory: |
4728 stream->Add("[external-memory]"); | 4729 stream->Add("[external-memory]"); |
4729 break; | 4730 break; |
4730 } | 4731 } |
4731 | 4732 |
4732 stream->Add("@%d", offset()); | 4733 stream->Add("@%d", offset()); |
4733 } | 4734 } |
4734 | 4735 |
4735 } } // namespace v8::internal | 4736 } } // namespace v8::internal |
OLD | NEW |