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 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 return AssignEnvironment(Define(result, temp1)); | 1722 return AssignEnvironment(Define(result, temp1)); |
1723 } | 1723 } |
1724 | 1724 |
1725 | 1725 |
1726 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1726 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1727 LOperand* value = UseRegisterAtStart(instr->value()); | 1727 LOperand* value = UseRegisterAtStart(instr->value()); |
1728 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1728 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
1729 } | 1729 } |
1730 | 1730 |
1731 | 1731 |
| 1732 LInstruction* LChunkBuilder::DoCheckSmiOrInt32(HCheckSmiOrInt32* instr) { |
| 1733 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1734 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 1735 } |
| 1736 |
| 1737 |
1732 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1738 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
1733 LOperand* value = UseRegisterAtStart(instr->value()); | 1739 LOperand* value = UseRegisterAtStart(instr->value()); |
1734 return AssignEnvironment(new(zone()) LCheckFunction(value)); | 1740 return AssignEnvironment(new(zone()) LCheckFunction(value)); |
1735 } | 1741 } |
1736 | 1742 |
1737 | 1743 |
1738 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1744 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
1739 LOperand* value = UseRegisterAtStart(instr->value()); | 1745 LOperand* value = UseRegisterAtStart(instr->value()); |
1740 LInstruction* result = new(zone()) LCheckMaps(value); | 1746 LInstruction* result = new(zone()) LCheckMaps(value); |
1741 return AssignEnvironment(result); | 1747 return AssignEnvironment(result); |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 | 2326 |
2321 | 2327 |
2322 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2328 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2323 LOperand* object = UseRegister(instr->object()); | 2329 LOperand* object = UseRegister(instr->object()); |
2324 LOperand* index = UseRegister(instr->index()); | 2330 LOperand* index = UseRegister(instr->index()); |
2325 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2331 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2326 } | 2332 } |
2327 | 2333 |
2328 | 2334 |
2329 } } // namespace v8::internal | 2335 } } // namespace v8::internal |
OLD | NEW |