| 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 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 } | 1564 } |
| 1565 | 1565 |
| 1566 | 1566 |
| 1567 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1567 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
| 1568 HFixedArrayBaseLength* instr) { | 1568 HFixedArrayBaseLength* instr) { |
| 1569 LOperand* array = UseRegisterAtStart(instr->value()); | 1569 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1570 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | 1570 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 | 1573 |
| 1574 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1575 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1576 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1577 } |
| 1578 |
| 1579 |
| 1574 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1580 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
| 1575 LOperand* object = UseRegisterAtStart(instr->value()); | 1581 LOperand* object = UseRegisterAtStart(instr->value()); |
| 1576 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1582 return DefineAsRegister(new(zone()) LElementsKind(object)); |
| 1577 } | 1583 } |
| 1578 | 1584 |
| 1579 | 1585 |
| 1580 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1586 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1581 LOperand* object = UseRegister(instr->value()); | 1587 LOperand* object = UseRegister(instr->value()); |
| 1582 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1588 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
| 1583 return DefineSameAsFirst(result); | 1589 return DefineSameAsFirst(result); |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2402 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2397 LOperand* object = UseRegister(instr->object()); | 2403 LOperand* object = UseRegister(instr->object()); |
| 2398 LOperand* index = UseTempRegister(instr->index()); | 2404 LOperand* index = UseTempRegister(instr->index()); |
| 2399 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2405 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2400 } | 2406 } |
| 2401 | 2407 |
| 2402 | 2408 |
| 2403 } } // namespace v8::internal | 2409 } } // namespace v8::internal |
| 2404 | 2410 |
| 2405 #endif // V8_TARGET_ARCH_IA32 | 2411 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |