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

Side by Side Diff: src/hydrogen.cc

Issue 17082003: Let NaN flow as double into HBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 void HGraphBuilder::IfBuilder::Then() { 796 void HGraphBuilder::IfBuilder::Then() {
797 ASSERT(!captured_); 797 ASSERT(!captured_);
798 ASSERT(!finished_); 798 ASSERT(!finished_);
799 did_then_ = true; 799 did_then_ = true;
800 if (needs_compare_) { 800 if (needs_compare_) {
801 // Handle if's without any expressions, they jump directly to the "else" 801 // Handle if's without any expressions, they jump directly to the "else"
802 // branch. However, we must pretend that the "then" branch is reachable, 802 // branch. However, we must pretend that the "then" branch is reachable,
803 // so that the graph builder visits it and sees any live range extending 803 // so that the graph builder visits it and sees any live range extending
804 // constructs within it. 804 // constructs within it.
805 HConstant* constant_false = builder_->graph()->GetConstantFalse(); 805 HConstant* constant_false = builder_->graph()->GetConstantFalse();
806 ToBooleanStub::Types boolean_type = ToBooleanStub::no_types(); 806 ToBooleanStub::Types boolean_type = ToBooleanStub::Types();
807 boolean_type.Add(ToBooleanStub::BOOLEAN); 807 boolean_type.Add(ToBooleanStub::BOOLEAN);
808 HBranch* branch = 808 HBranch* branch =
809 new(zone()) HBranch(constant_false, first_true_block_, 809 new(zone()) HBranch(constant_false, first_true_block_,
810 first_false_block_, boolean_type); 810 first_false_block_, boolean_type);
811 builder_->current_block()->Finish(branch); 811 builder_->current_block()->Finish(branch);
812 } 812 }
813 builder_->set_current_block(first_true_block_); 813 builder_->set_current_block(first_true_block_);
814 } 814 }
815 815
816 816
(...skipping 10822 matching lines...) Expand 10 before | Expand all | Expand 10 after
11639 } 11639 }
11640 } 11640 }
11641 11641
11642 #ifdef DEBUG 11642 #ifdef DEBUG
11643 if (graph_ != NULL) graph_->Verify(false); // No full verify. 11643 if (graph_ != NULL) graph_->Verify(false); // No full verify.
11644 if (allocator_ != NULL) allocator_->Verify(); 11644 if (allocator_ != NULL) allocator_->Verify();
11645 #endif 11645 #endif
11646 } 11646 }
11647 11647
11648 } } // namespace v8::internal 11648 } } // namespace v8::internal
OLDNEW
« src/arm/lithium-arm.cc ('K') | « src/code-stubs.h ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698