| 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 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1759 return AssignEnvironment(Define(result, temp)); | 1759 return AssignEnvironment(Define(result, temp)); |
| 1760 } | 1760 } |
| 1761 | 1761 |
| 1762 | 1762 |
| 1763 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1763 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
| 1764 LOperand* value = UseRegisterAtStart(instr->value()); | 1764 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1765 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1765 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 | 1768 |
| 1769 LInstruction* LChunkBuilder::DoCheckSmiOrInt32(HCheckSmiOrInt32* instr) { |
| 1770 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1771 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 1772 } |
| 1773 |
| 1774 |
| 1769 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1775 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
| 1770 LOperand* value = UseRegisterAtStart(instr->value()); | 1776 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1771 return AssignEnvironment(new(zone()) LCheckFunction(value)); | 1777 return AssignEnvironment(new(zone()) LCheckFunction(value)); |
| 1772 } | 1778 } |
| 1773 | 1779 |
| 1774 | 1780 |
| 1775 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1781 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
| 1776 LOperand* value = UseRegisterAtStart(instr->value()); | 1782 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1777 LCheckMaps* result = new(zone()) LCheckMaps(value); | 1783 LCheckMaps* result = new(zone()) LCheckMaps(value); |
| 1778 return AssignEnvironment(result); | 1784 return AssignEnvironment(result); |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2385 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2391 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2386 LOperand* object = UseRegister(instr->object()); | 2392 LOperand* object = UseRegister(instr->object()); |
| 2387 LOperand* index = UseTempRegister(instr->index()); | 2393 LOperand* index = UseTempRegister(instr->index()); |
| 2388 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2394 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2389 } | 2395 } |
| 2390 | 2396 |
| 2391 | 2397 |
| 2392 } } // namespace v8::internal | 2398 } } // namespace v8::internal |
| 2393 | 2399 |
| 2394 #endif // V8_TARGET_ARCH_X64 | 2400 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |