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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 HHasCachedArrayIndexAndBranch* instr) { | 1547 HHasCachedArrayIndexAndBranch* instr) { |
1548 ASSERT(instr->value()->representation().IsTagged()); | 1548 ASSERT(instr->value()->representation().IsTagged()); |
1549 return new LHasCachedArrayIndexAndBranch( | 1549 return new LHasCachedArrayIndexAndBranch( |
1550 UseRegisterAtStart(instr->value())); | 1550 UseRegisterAtStart(instr->value())); |
1551 } | 1551 } |
1552 | 1552 |
1553 | 1553 |
1554 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1554 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
1555 HClassOfTestAndBranch* instr) { | 1555 HClassOfTestAndBranch* instr) { |
1556 ASSERT(instr->value()->representation().IsTagged()); | 1556 ASSERT(instr->value()->representation().IsTagged()); |
1557 return new LClassOfTestAndBranch(UseTempRegister(instr->value()), | 1557 return new LClassOfTestAndBranch(UseRegister(instr->value()), |
1558 TempRegister()); | 1558 TempRegister()); |
1559 } | 1559 } |
1560 | 1560 |
1561 | 1561 |
1562 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | 1562 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { |
1563 LOperand* array = UseRegisterAtStart(instr->value()); | 1563 LOperand* array = UseRegisterAtStart(instr->value()); |
1564 return DefineAsRegister(new LJSArrayLength(array)); | 1564 return DefineAsRegister(new LJSArrayLength(array)); |
1565 } | 1565 } |
1566 | 1566 |
1567 | 1567 |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2265 | 2265 |
2266 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2266 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2267 LOperand* key = UseRegisterAtStart(instr->key()); | 2267 LOperand* key = UseRegisterAtStart(instr->key()); |
2268 LOperand* object = UseRegisterAtStart(instr->object()); | 2268 LOperand* object = UseRegisterAtStart(instr->object()); |
2269 LIn* result = new LIn(key, object); | 2269 LIn* result = new LIn(key, object); |
2270 return MarkAsCall(DefineFixed(result, v0), instr); | 2270 return MarkAsCall(DefineFixed(result, v0), instr); |
2271 } | 2271 } |
2272 | 2272 |
2273 | 2273 |
2274 } } // namespace v8::internal | 2274 } } // namespace v8::internal |
OLD | NEW |