| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 TempRegister()); | 1502 TempRegister()); |
| 1503 } | 1503 } |
| 1504 | 1504 |
| 1505 | 1505 |
| 1506 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | 1506 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { |
| 1507 LOperand* array = UseRegisterAtStart(instr->value()); | 1507 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1508 return DefineAsRegister(new LJSArrayLength(array)); | 1508 return DefineAsRegister(new LJSArrayLength(array)); |
| 1509 } | 1509 } |
| 1510 | 1510 |
| 1511 | 1511 |
| 1512 LInstruction* LChunkBuilder::DoExternalArrayLength( | 1512 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
| 1513 HExternalArrayLength* instr) { | 1513 HFixedArrayBaseLength* instr) { |
| 1514 LOperand* array = UseRegisterAtStart(instr->value()); | 1514 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1515 return DefineAsRegister(new LExternalArrayLength(array)); | 1515 return DefineAsRegister(new LFixedArrayBaseLength(array)); |
| 1516 } | 1516 } |
| 1517 | 1517 |
| 1518 | 1518 |
| 1519 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { | |
| 1520 LOperand* array = UseRegisterAtStart(instr->value()); | |
| 1521 return DefineAsRegister(new LFixedArrayLength(array)); | |
| 1522 } | |
| 1523 | |
| 1524 | |
| 1525 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1519 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
| 1526 LOperand* object = UseRegisterAtStart(instr->value()); | 1520 LOperand* object = UseRegisterAtStart(instr->value()); |
| 1527 return DefineAsRegister(new LElementsKind(object)); | 1521 return DefineAsRegister(new LElementsKind(object)); |
| 1528 } | 1522 } |
| 1529 | 1523 |
| 1530 | 1524 |
| 1531 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1525 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1532 LOperand* object = UseRegister(instr->value()); | 1526 LOperand* object = UseRegister(instr->value()); |
| 1533 LValueOf* result = new LValueOf(object, TempRegister()); | 1527 LValueOf* result = new LValueOf(object, TempRegister()); |
| 1534 return AssignEnvironment(DefineAsRegister(result)); | 1528 return AssignEnvironment(DefineAsRegister(result)); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 | 2182 |
| 2189 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2183 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2190 LOperand* key = UseRegisterAtStart(instr->key()); | 2184 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2191 LOperand* object = UseRegisterAtStart(instr->object()); | 2185 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2192 LIn* result = new LIn(key, object); | 2186 LIn* result = new LIn(key, object); |
| 2193 return MarkAsCall(DefineFixed(result, r0), instr); | 2187 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2194 } | 2188 } |
| 2195 | 2189 |
| 2196 | 2190 |
| 2197 } } // namespace v8::internal | 2191 } } // namespace v8::internal |
| OLD | NEW |