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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1495 TempRegister()); | 1495 TempRegister()); |
1496 } | 1496 } |
1497 | 1497 |
1498 | 1498 |
1499 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | 1499 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { |
1500 LOperand* array = UseRegisterAtStart(instr->value()); | 1500 LOperand* array = UseRegisterAtStart(instr->value()); |
1501 return DefineAsRegister(new LJSArrayLength(array)); | 1501 return DefineAsRegister(new LJSArrayLength(array)); |
1502 } | 1502 } |
1503 | 1503 |
1504 | 1504 |
1505 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { | 1505 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
| 1506 HFixedArrayBaseLength* instr) { |
1506 LOperand* array = UseRegisterAtStart(instr->value()); | 1507 LOperand* array = UseRegisterAtStart(instr->value()); |
1507 return DefineAsRegister(new LFixedArrayLength(array)); | 1508 return DefineAsRegister(new LFixedArrayBaseLength(array)); |
1508 } | 1509 } |
1509 | 1510 |
1510 | 1511 |
1511 LInstruction* LChunkBuilder::DoExternalArrayLength( | |
1512 HExternalArrayLength* instr) { | |
1513 LOperand* array = UseRegisterAtStart(instr->value()); | |
1514 return DefineAsRegister(new LExternalArrayLength(array)); | |
1515 } | |
1516 | |
1517 | |
1518 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { | 1512 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { |
1519 LOperand* object = UseRegisterAtStart(instr->value()); | 1513 LOperand* object = UseRegisterAtStart(instr->value()); |
1520 return DefineAsRegister(new LElementsKind(object)); | 1514 return DefineAsRegister(new LElementsKind(object)); |
1521 } | 1515 } |
1522 | 1516 |
1523 | 1517 |
1524 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1518 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1525 LOperand* object = UseRegister(instr->value()); | 1519 LOperand* object = UseRegister(instr->value()); |
1526 LValueOf* result = new LValueOf(object); | 1520 LValueOf* result = new LValueOf(object); |
1527 return AssignEnvironment(DefineSameAsFirst(result)); | 1521 return AssignEnvironment(DefineSameAsFirst(result)); |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 LOperand* key = UseOrConstantAtStart(instr->key()); | 2171 LOperand* key = UseOrConstantAtStart(instr->key()); |
2178 LOperand* object = UseOrConstantAtStart(instr->object()); | 2172 LOperand* object = UseOrConstantAtStart(instr->object()); |
2179 LIn* result = new LIn(key, object); | 2173 LIn* result = new LIn(key, object); |
2180 return MarkAsCall(DefineFixed(result, rax), instr); | 2174 return MarkAsCall(DefineFixed(result, rax), instr); |
2181 } | 2175 } |
2182 | 2176 |
2183 | 2177 |
2184 } } // namespace v8::internal | 2178 } } // namespace v8::internal |
2185 | 2179 |
2186 #endif // V8_TARGET_ARCH_X64 | 2180 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |