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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 226613007: Don't emit LDummyUse for ArgumentsObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months 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 | test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698