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 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 | 1682 |
1683 | 1683 |
1684 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1684 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
1685 LOperand* value = UseRegisterAtStart(instr->value()); | 1685 LOperand* value = UseRegisterAtStart(instr->value()); |
1686 LInstruction* result = new(zone()) LCheckInstanceType(value); | 1686 LInstruction* result = new(zone()) LCheckInstanceType(value); |
1687 return AssignEnvironment(result); | 1687 return AssignEnvironment(result); |
1688 } | 1688 } |
1689 | 1689 |
1690 | 1690 |
1691 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 1691 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
1692 LOperand* temp1 = TempRegister(); | 1692 LUnallocated* temp1 = TempRegister(); |
1693 LOperand* temp2 = TempRegister(); | 1693 LOperand* temp2 = TempRegister(); |
1694 LInstruction* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); | 1694 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); |
1695 return AssignEnvironment(result); | 1695 return AssignEnvironment(Define(result, temp1)); |
1696 } | 1696 } |
1697 | 1697 |
1698 | 1698 |
1699 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1699 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1700 LOperand* value = UseRegisterAtStart(instr->value()); | 1700 LOperand* value = UseRegisterAtStart(instr->value()); |
1701 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1701 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
1702 } | 1702 } |
1703 | 1703 |
1704 | 1704 |
1705 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1705 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2306 | 2306 |
2307 | 2307 |
2308 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2308 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2309 LOperand* object = UseRegister(instr->object()); | 2309 LOperand* object = UseRegister(instr->object()); |
2310 LOperand* index = UseRegister(instr->index()); | 2310 LOperand* index = UseRegister(instr->index()); |
2311 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2311 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2312 } | 2312 } |
2313 | 2313 |
2314 | 2314 |
2315 } } // namespace v8::internal | 2315 } } // namespace v8::internal |
OLD | NEW |