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

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

Issue 14174002: Added non observable side effects scope and removed unnecessary calls to AddSimulate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/hydrogen-instructions.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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 795
796 void HValue::ComputeInitialRange(Zone* zone) { 796 void HValue::ComputeInitialRange(Zone* zone) {
797 ASSERT(!HasRange()); 797 ASSERT(!HasRange());
798 range_ = InferRange(zone); 798 range_ = InferRange(zone);
799 ASSERT(HasRange()); 799 ASSERT(HasRange());
800 } 800 }
801 801
802 802
803 void HInstruction::PrintTo(StringStream* stream) { 803 void HInstruction::PrintTo(StringStream* stream) {
804 PrintMnemonicTo(stream); 804 PrintMnemonicTo(stream);
805 const char* side_effects =
806 CheckFlag(HValue::kHasNoObservableSideEffects) ? "-" : "+";
807 stream->Add("ose%s ", side_effects);
805 PrintDataTo(stream); 808 PrintDataTo(stream);
806 PrintRangeTo(stream); 809 PrintRangeTo(stream);
807 PrintChangesTo(stream); 810 PrintChangesTo(stream);
808 PrintTypeTo(stream); 811 PrintTypeTo(stream);
809 } 812 }
810 813
811 814
812 void HInstruction::PrintMnemonicTo(StringStream* stream) { 815 void HInstruction::PrintMnemonicTo(StringStream* stream) {
813 stream->Add("%s ", Mnemonic()); 816 stream->Add("%s ", Mnemonic());
814 } 817 }
(...skipping 2715 matching lines...) Expand 10 before | Expand all | Expand 10 after
3530 3533
3531 3534
3532 void HCheckFunction::Verify() { 3535 void HCheckFunction::Verify() {
3533 HInstruction::Verify(); 3536 HInstruction::Verify();
3534 ASSERT(HasNoUses()); 3537 ASSERT(HasNoUses());
3535 } 3538 }
3536 3539
3537 #endif 3540 #endif
3538 3541
3539 } } // namespace v8::internal 3542 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698