| 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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1466 } | 1466 } |
| 1467 | 1467 |
| 1468 | 1468 |
| 1469 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1469 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
| 1470 HFixedArrayBaseLength* instr) { | 1470 HFixedArrayBaseLength* instr) { |
| 1471 LOperand* array = UseRegisterAtStart(instr->value()); | 1471 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1472 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); | 1472 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array)); |
| 1473 } | 1473 } |
| 1474 | 1474 |
| 1475 | 1475 |
| 1476 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { |
| 1477 LOperand* map = UseRegisterAtStart(instr->value()); |
| 1478 return DefineAsRegister(new(zone()) LMapEnumLength(map)); |
| 1479 } |
| 1480 |
| 1481 |
| 1476 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1482 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
| 1477 LOperand* object = UseRegisterAtStart(instr->value()); | 1483 LOperand* object = UseRegisterAtStart(instr->value()); |
| 1478 return DefineAsRegister(new(zone()) LElementsKind(object)); | 1484 return DefineAsRegister(new(zone()) LElementsKind(object)); |
| 1479 } | 1485 } |
| 1480 | 1486 |
| 1481 | 1487 |
| 1482 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1488 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1483 LOperand* object = UseRegister(instr->value()); | 1489 LOperand* object = UseRegister(instr->value()); |
| 1484 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); | 1490 LValueOf* result = new(zone()) LValueOf(object, TempRegister()); |
| 1485 return DefineAsRegister(result); | 1491 return DefineAsRegister(result); |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 | 2238 |
| 2233 | 2239 |
| 2234 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2240 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2235 LOperand* object = UseRegister(instr->object()); | 2241 LOperand* object = UseRegister(instr->object()); |
| 2236 LOperand* index = UseRegister(instr->index()); | 2242 LOperand* index = UseRegister(instr->index()); |
| 2237 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2243 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2238 } | 2244 } |
| 2239 | 2245 |
| 2240 | 2246 |
| 2241 } } // namespace v8::internal | 2247 } } // namespace v8::internal |
| OLD | NEW |