| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 return DefineAsRegister(new LInteger32ToDouble(value)); | 1662 return DefineAsRegister(new LInteger32ToDouble(value)); |
| 1663 } | 1663 } |
| 1664 } | 1664 } |
| 1665 UNREACHABLE(); | 1665 UNREACHABLE(); |
| 1666 return NULL; | 1666 return NULL; |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 | 1669 |
| 1670 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { | 1670 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { |
| 1671 LOperand* value = UseRegisterAtStart(instr->value()); | 1671 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1672 return AssignEnvironment(new LCheckSmi(value, eq)); | 1672 return AssignEnvironment(new LCheckNonSmi(value)); |
| 1673 } | 1673 } |
| 1674 | 1674 |
| 1675 | 1675 |
| 1676 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1676 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
| 1677 LOperand* value = UseRegisterAtStart(instr->value()); | 1677 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1678 LInstruction* result = new LCheckInstanceType(value); | 1678 LInstruction* result = new LCheckInstanceType(value); |
| 1679 return AssignEnvironment(result); | 1679 return AssignEnvironment(result); |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 | 1682 |
| 1683 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 1683 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
| 1684 LOperand* temp1 = TempRegister(); | 1684 LOperand* temp1 = TempRegister(); |
| 1685 LOperand* temp2 = TempRegister(); | 1685 LOperand* temp2 = TempRegister(); |
| 1686 LInstruction* result = new LCheckPrototypeMaps(temp1, temp2); | 1686 LInstruction* result = new LCheckPrototypeMaps(temp1, temp2); |
| 1687 return AssignEnvironment(result); | 1687 return AssignEnvironment(result); |
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 | 1690 |
| 1691 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1691 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
| 1692 LOperand* value = UseRegisterAtStart(instr->value()); | 1692 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1693 return AssignEnvironment(new LCheckSmi(value, ne)); | 1693 return AssignEnvironment(new LCheckSmi(value)); |
| 1694 } | 1694 } |
| 1695 | 1695 |
| 1696 | 1696 |
| 1697 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1697 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
| 1698 LOperand* value = UseRegisterAtStart(instr->value()); | 1698 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1699 return AssignEnvironment(new LCheckFunction(value)); | 1699 return AssignEnvironment(new LCheckFunction(value)); |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 | 1702 |
| 1703 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { | 1703 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 | 2064 |
| 2065 | 2065 |
| 2066 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2066 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2067 HEnvironment* outer = current_block_->last_environment()->outer(); | 2067 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2068 current_block_->UpdateEnvironment(outer); | 2068 current_block_->UpdateEnvironment(outer); |
| 2069 return NULL; | 2069 return NULL; |
| 2070 } | 2070 } |
| 2071 | 2071 |
| 2072 | 2072 |
| 2073 } } // namespace v8::internal | 2073 } } // namespace v8::internal |
| OLD | NEW |