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 IsCapturedObject() || |
512 IsSimulate() || | 513 IsSimulate() || |
513 IsEnterInlined() || | 514 IsEnterInlined() || |
514 IsLeaveInlined()); | 515 IsLeaveInlined()); |
515 } | 516 } |
516 | 517 |
517 | 518 |
518 bool HValue::IsInteger32Constant() { | 519 bool HValue::IsInteger32Constant() { |
519 return IsConstant() && HConstant::cast(this)->HasInteger32Value(); | 520 return IsConstant() && HConstant::cast(this)->HasInteger32Value(); |
520 } | 521 } |
521 | 522 |
(...skipping 4173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4695 break; | 4696 break; |
4696 case kExternalMemory: | 4697 case kExternalMemory: |
4697 stream->Add("[external-memory]"); | 4698 stream->Add("[external-memory]"); |
4698 break; | 4699 break; |
4699 } | 4700 } |
4700 | 4701 |
4701 stream->Add("@%d", offset()); | 4702 stream->Add("@%d", offset()); |
4702 } | 4703 } |
4703 | 4704 |
4704 } } // namespace v8::internal | 4705 } } // namespace v8::internal |
OLD | NEW |