| OLD | NEW |
| 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 4633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4644 instruction->DeleteAndReplaceWith(instruction->RedefinedOperand()); | 4644 instruction->DeleteAndReplaceWith(instruction->RedefinedOperand()); |
| 4645 } else { | 4645 } else { |
| 4646 instruction->ReplaceAllUsesWith(instruction->ActualValue()); | 4646 instruction->ReplaceAllUsesWith(instruction->ActualValue()); |
| 4647 } | 4647 } |
| 4648 } | 4648 } |
| 4649 } | 4649 } |
| 4650 } | 4650 } |
| 4651 } | 4651 } |
| 4652 | 4652 |
| 4653 | 4653 |
| 4654 void HOptimizedGraphBuilder::AddPhi(HPhi* instr) { | |
| 4655 ASSERT(current_block() != NULL); | |
| 4656 current_block()->AddPhi(instr); | |
| 4657 } | |
| 4658 | |
| 4659 | |
| 4660 void HOptimizedGraphBuilder::PushAndAdd(HInstruction* instr) { | 4654 void HOptimizedGraphBuilder::PushAndAdd(HInstruction* instr) { |
| 4661 Push(instr); | 4655 Push(instr); |
| 4662 AddInstruction(instr); | 4656 AddInstruction(instr); |
| 4663 } | 4657 } |
| 4664 | 4658 |
| 4665 | 4659 |
| 4666 void HOptimizedGraphBuilder::AddSoftDeoptimize() { | 4660 void HOptimizedGraphBuilder::AddSoftDeoptimize() { |
| 4667 isolate()->counters()->soft_deopts_requested()->Increment(); | 4661 isolate()->counters()->soft_deopts_requested()->Increment(); |
| 4668 if (FLAG_always_opt) return; | 4662 if (FLAG_always_opt) return; |
| 4669 if (current_block()->IsDeoptimizing()) return; | 4663 if (current_block()->IsDeoptimizing()) return; |
| (...skipping 6914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11584 } | 11578 } |
| 11585 } | 11579 } |
| 11586 | 11580 |
| 11587 #ifdef DEBUG | 11581 #ifdef DEBUG |
| 11588 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 11582 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 11589 if (allocator_ != NULL) allocator_->Verify(); | 11583 if (allocator_ != NULL) allocator_->Verify(); |
| 11590 #endif | 11584 #endif |
| 11591 } | 11585 } |
| 11592 | 11586 |
| 11593 } } // namespace v8::internal | 11587 } } // namespace v8::internal |
| OLD | NEW |