Guard against misuse of IfBuilder.
R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/30693007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17319 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
32cdd4d48a
commit
32d96248f9
@ -795,6 +795,7 @@ HControlInstruction* HGraphBuilder::IfBuilder::AddCompare(
|
||||
|
||||
|
||||
void HGraphBuilder::IfBuilder::Or() {
|
||||
ASSERT(!needs_compare_);
|
||||
ASSERT(!did_and_);
|
||||
did_or_ = true;
|
||||
HEnvironment* env = first_false_block_->last_environment();
|
||||
@ -810,6 +811,7 @@ void HGraphBuilder::IfBuilder::Or() {
|
||||
|
||||
|
||||
void HGraphBuilder::IfBuilder::And() {
|
||||
ASSERT(!needs_compare_);
|
||||
ASSERT(!did_or_);
|
||||
did_and_ = true;
|
||||
HEnvironment* env = first_false_block_->last_environment();
|
||||
|
Loading…
Reference in New Issue
Block a user