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

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

Issue 222283002: Do not generate LDummyUse instruction for HCapturedObject (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-captured-object-no-dummy-use.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 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
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
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-captured-object-no-dummy-use.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698