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

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

Issue 130613003: Eliminatable CheckMaps replaced with if(true) or if(false). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review notes applied, rev.2 Created 6 years, 11 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
« src/hydrogen.cc ('K') | « src/hydrogen-flow-engine.h ('k') | no next file » | 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 } 708 }
709 709
710 710
711 void HInstruction::PrintMnemonicTo(StringStream* stream) { 711 void HInstruction::PrintMnemonicTo(StringStream* stream) {
712 stream->Add("%s ", Mnemonic()); 712 stream->Add("%s ", Mnemonic());
713 } 713 }
714 714
715 715
716 void HInstruction::Unlink() { 716 void HInstruction::Unlink() {
717 ASSERT(IsLinked()); 717 ASSERT(IsLinked());
718 ASSERT(!IsControlInstruction()); // Must never move control instructions.
719 ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these. 718 ASSERT(!IsBlockEntry()); // Doesn't make sense to delete these.
720 ASSERT(previous_ != NULL); 719 ASSERT(previous_ != NULL);
721 previous_->next_ = next_; 720 previous_->next_ = next_;
722 if (next_ == NULL) { 721 if (next_ == NULL) {
723 ASSERT(block()->last() == this); 722 ASSERT(block()->last() == this);
724 block()->set_last(previous_); 723 block()->set_last(previous_);
725 } else { 724 } else {
726 next_->previous_ = previous_; 725 next_->previous_ = previous_;
727 } 726 }
728 clear_block(); 727 clear_block();
(...skipping 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after
4445 break; 4444 break;
4446 case kExternalMemory: 4445 case kExternalMemory:
4447 stream->Add("[external-memory]"); 4446 stream->Add("[external-memory]");
4448 break; 4447 break;
4449 } 4448 }
4450 4449
4451 stream->Add("@%d", offset()); 4450 stream->Add("@%d", offset());
4452 } 4451 }
4453 4452
4454 } } // namespace v8::internal 4453 } } // namespace v8::internal
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen-flow-engine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698