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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 // want the value in a register. If the target gets promoted before we | 1781 // want the value in a register. If the target gets promoted before we |
1782 // emit code, we will still get the register but will do an immediate | 1782 // emit code, we will still get the register but will do an immediate |
1783 // compare instead of the cell compare. This is safe. | 1783 // compare instead of the cell compare. This is safe. |
1784 LOperand* value = Isolate::Current()->heap()->InNewSpace(*instr->target()) | 1784 LOperand* value = Isolate::Current()->heap()->InNewSpace(*instr->target()) |
1785 ? UseRegisterAtStart(instr->value()) | 1785 ? UseRegisterAtStart(instr->value()) |
1786 : UseAtStart(instr->value()); | 1786 : UseAtStart(instr->value()); |
1787 return AssignEnvironment(new(zone()) LCheckFunction(value)); | 1787 return AssignEnvironment(new(zone()) LCheckFunction(value)); |
1788 } | 1788 } |
1789 | 1789 |
1790 | 1790 |
1791 LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) { | 1791 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
1792 LOperand* value = UseRegisterAtStart(instr->value()); | 1792 LOperand* value = UseRegisterAtStart(instr->value()); |
1793 LCheckMap* result = new(zone()) LCheckMap(value); | 1793 LCheckMaps* result = new(zone()) LCheckMaps(value); |
1794 return AssignEnvironment(result); | 1794 return AssignEnvironment(result); |
1795 } | 1795 } |
1796 | 1796 |
1797 | 1797 |
1798 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { | 1798 LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) { |
1799 HValue* value = instr->value(); | 1799 HValue* value = instr->value(); |
1800 Representation input_rep = value->representation(); | 1800 Representation input_rep = value->representation(); |
1801 if (input_rep.IsDouble()) { | 1801 if (input_rep.IsDouble()) { |
1802 LOperand* reg = UseRegister(value); | 1802 LOperand* reg = UseRegister(value); |
1803 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); | 1803 return DefineAsRegister(new(zone()) LClampDToUint8(reg)); |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2416 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2417 LOperand* object = UseRegister(instr->object()); | 2417 LOperand* object = UseRegister(instr->object()); |
2418 LOperand* index = UseTempRegister(instr->index()); | 2418 LOperand* index = UseTempRegister(instr->index()); |
2419 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2419 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2420 } | 2420 } |
2421 | 2421 |
2422 | 2422 |
2423 } } // namespace v8::internal | 2423 } } // namespace v8::internal |
2424 | 2424 |
2425 #endif // V8_TARGET_ARCH_IA32 | 2425 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |