| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1755 | 1755 |
| 1756 | 1756 |
| 1757 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { | 1757 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { |
| 1758 LOperand* value = UseRegisterAtStart(instr->value()); | 1758 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1759 return AssignEnvironment(new LCheckSmi(value, eq)); | 1759 return AssignEnvironment(new LCheckSmi(value, eq)); |
| 1760 } | 1760 } |
| 1761 | 1761 |
| 1762 | 1762 |
| 1763 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1763 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
| 1764 LOperand* value = UseRegisterAtStart(instr->value()); | 1764 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1765 LOperand* temp = TempRegister(); | 1765 LInstruction* result = new LCheckInstanceType(value); |
| 1766 LInstruction* result = new LCheckInstanceType(value, temp); | |
| 1767 return AssignEnvironment(result); | 1766 return AssignEnvironment(result); |
| 1768 } | 1767 } |
| 1769 | 1768 |
| 1770 | 1769 |
| 1771 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 1770 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
| 1772 LOperand* temp1 = TempRegister(); | 1771 LOperand* temp1 = TempRegister(); |
| 1773 LOperand* temp2 = TempRegister(); | 1772 LOperand* temp2 = TempRegister(); |
| 1774 LInstruction* result = | 1773 LInstruction* result = |
| 1775 new LCheckPrototypeMaps(temp1, | 1774 new LCheckPrototypeMaps(temp1, |
| 1776 temp2, | 1775 temp2, |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2107 void LPointerMap::PrintTo(StringStream* stream) const { | 2106 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2108 stream->Add("{"); | 2107 stream->Add("{"); |
| 2109 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2108 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2110 if (i != 0) stream->Add(";"); | 2109 if (i != 0) stream->Add(";"); |
| 2111 pointer_operands_[i]->PrintTo(stream); | 2110 pointer_operands_[i]->PrintTo(stream); |
| 2112 } | 2111 } |
| 2113 stream->Add("} @%d", position()); | 2112 stream->Add("} @%d", position()); |
| 2114 } | 2113 } |
| 2115 | 2114 |
| 2116 } } // namespace v8::internal | 2115 } } // namespace v8::internal |
| OLD | NEW |