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