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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 } | 1532 } |
1533 | 1533 |
1534 | 1534 |
1535 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1535 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
1536 HFixedArrayBaseLength* instr) { | 1536 HFixedArrayBaseLength* instr) { |
1537 LOperand* array = UseRegisterAtStart(instr->value()); | 1537 LOperand* array = UseRegisterAtStart(instr->value()); |
1538 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | 1538 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); |
1539 } | 1539 } |
1540 | 1540 |
1541 | 1541 |
| 1542 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1543 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1544 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1545 } |
| 1546 |
| 1547 |
1542 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1548 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
1543 LOperand* object = UseRegisterAtStart(instr->value()); | 1549 LOperand* object = UseRegisterAtStart(instr->value()); |
1544 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1550 return DefineAsRegister(new(zone()) LElementsKind(object)); |
1545 } | 1551 } |
1546 | 1552 |
1547 | 1553 |
1548 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1554 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1549 LOperand* object = UseRegister(instr->value()); | 1555 LOperand* object = UseRegister(instr->value()); |
1550 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1556 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
1551 return DefineAsRegister(result); | 1557 return DefineAsRegister(result); |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2303 | 2309 |
2304 | 2310 |
2305 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2311 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2306 LOperand* object = UseRegister(instr->object()); | 2312 LOperand* object = UseRegister(instr->object()); |
2307 LOperand* index = UseRegister(instr->index()); | 2313 LOperand* index = UseRegister(instr->index()); |
2308 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2314 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2309 } | 2315 } |
2310 | 2316 |
2311 | 2317 |
2312 } } // namespace v8::internal | 2318 } } // namespace v8::internal |
OLD | NEW |