| 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 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 | 1790 |
| 1791 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { | 1791 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { |
| 1792 LOperand* value = UseRegisterAtStart(instr->value()); | 1792 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1793 LCheckMap* result = new(zone()) LCheckMap(value); | 1793 LCheckMap* result = new(zone()) LCheckMap(value); |
| 1794 return AssignEnvironment(result); | 1794 return AssignEnvironment(result); |
| 1795 } | 1795 } |
| 1796 | 1796 |
| 1797 | 1797 |
| 1798 LInstruction* LChunkBuilder::DoCheckMapSet(HCheckMapSet* instr) { |
| 1799 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1800 LCheckMapSet* result = new(zone()) LCheckMapSet(value); |
| 1801 return AssignEnvironment(result); |
| 1802 } |
| 1803 |
| 1804 |
| 1798 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { | 1805 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { |
| 1799 HValue* value = instr->value(); | 1806 HValue* value = instr->value(); |
| 1800 Representation input_rep = value->representation(); | 1807 Representation input_rep = value->representation(); |
| 1801 if (input_rep.IsDouble()) { | 1808 if (input_rep.IsDouble()) { |
| 1802 LOperand* reg = UseRegister(value); | 1809 LOperand* reg = UseRegister(value); |
| 1803 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); | 1810 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); |
| 1804 } else if (input_rep.IsInteger32()) { | 1811 } else if (input_rep.IsInteger32()) { |
| 1805 LOperand* reg = UseFixed(value, eax); | 1812 LOperand* reg = UseFixed(value, eax); |
| 1806 return DefineFixed(new(zone()) LClampIToUint8(reg), eax); | 1813 return DefineFixed(new(zone()) LClampIToUint8(reg), eax); |
| 1807 } else { | 1814 } else { |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2416 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2423 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2417 LOperand* object = UseRegister(instr->object()); | 2424 LOperand* object = UseRegister(instr->object()); |
| 2418 LOperand* index = UseTempRegister(instr->index()); | 2425 LOperand* index = UseTempRegister(instr->index()); |
| 2419 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2426 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2420 } | 2427 } |
| 2421 | 2428 |
| 2422 | 2429 |
| 2423 } } // namespace v8::internal | 2430 } } // namespace v8::internal |
| 2424 | 2431 |
| 2425 #endif // V8_TARGET_ARCH_IA32 | 2432 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |