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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 } | 1505 } |
1506 | 1506 |
1507 | 1507 |
1508 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1508 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
1509 HFixedArrayBaseLength* instr) { | 1509 HFixedArrayBaseLength* instr) { |
1510 LOperand* array = UseRegisterAtStart(instr->value()); | 1510 LOperand* array = UseRegisterAtStart(instr->value()); |
1511 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | 1511 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); |
1512 } | 1512 } |
1513 | 1513 |
1514 | 1514 |
| 1515 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1516 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1517 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1518 } |
| 1519 |
| 1520 |
1515 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1521 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
1516 LOperand* object = UseRegisterAtStart(instr->value()); | 1522 LOperand* object = UseRegisterAtStart(instr->value()); |
1517 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1523 return DefineAsRegister(new(zone()) LElementsKind(object)); |
1518 } | 1524 } |
1519 | 1525 |
1520 | 1526 |
1521 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1527 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1522 LOperand* object = UseRegister(instr->value()); | 1528 LOperand* object = UseRegister(instr->value()); |
1523 LValueOf* result = new(zone()) LValueOf(object); | 1529 LValueOf* result = new(zone()) LValueOf(object); |
1524 return DefineSameAsFirst(result); | 1530 return DefineSameAsFirst(result); |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2279 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2285 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2280 LOperand* object = UseRegister(instr->object()); | 2286 LOperand* object = UseRegister(instr->object()); |
2281 LOperand* index = UseTempRegister(instr->index()); | 2287 LOperand* index = UseTempRegister(instr->index()); |
2282 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2288 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2283 } | 2289 } |
2284 | 2290 |
2285 | 2291 |
2286 } } // namespace v8::internal | 2292 } } // namespace v8::internal |
2287 | 2293 |
2288 #endif // V8_TARGET_ARCH_X64 | 2294 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |