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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 | 1619 |
1620 | 1620 |
1621 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1621 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
1622 LOperand* value = UseRegisterAtStart(instr->value()); | 1622 LOperand* value = UseRegisterAtStart(instr->value()); |
1623 LInstruction* result = new(zone()) LCheckInstanceType(value); | 1623 LInstruction* result = new(zone()) LCheckInstanceType(value); |
1624 return AssignEnvironment(result); | 1624 return AssignEnvironment(result); |
1625 } | 1625 } |
1626 | 1626 |
1627 | 1627 |
1628 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 1628 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
1629 LOperand* temp1 = TempRegister(); | 1629 LUnallocated* temp1 = TempRegister(); |
1630 LOperand* temp2 = TempRegister(); | 1630 LOperand* temp2 = TempRegister(); |
1631 LInstruction* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); | 1631 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); |
1632 return AssignEnvironment(result); | 1632 return AssignEnvironment(Define(result, temp1)); |
1633 } | 1633 } |
1634 | 1634 |
1635 | 1635 |
1636 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1636 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1637 LOperand* value = UseRegisterAtStart(instr->value()); | 1637 LOperand* value = UseRegisterAtStart(instr->value()); |
1638 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1638 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
1639 } | 1639 } |
1640 | 1640 |
1641 | 1641 |
1642 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1642 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2244 | 2244 |
2245 | 2245 |
2246 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2246 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2247 LOperand* object = UseRegister(instr->object()); | 2247 LOperand* object = UseRegister(instr->object()); |
2248 LOperand* index = UseRegister(instr->index()); | 2248 LOperand* index = UseRegister(instr->index()); |
2249 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2249 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2250 } | 2250 } |
2251 | 2251 |
2252 | 2252 |
2253 } } // namespace v8::internal | 2253 } } // namespace v8::internal |
OLD | NEW |