| 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 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1568 } | 1568 } |
| 1569 | 1569 |
| 1570 | 1570 |
| 1571 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch( | 1571 LInstruction* LChunkBuilder::DoCompareConstantEqAndBranch( |
| 1572 HCompareConstantEqAndBranch* instr) { | 1572 HCompareConstantEqAndBranch* instr) { |
| 1573 return new(zone()) LCmpConstantEqAndBranch( | 1573 return new(zone()) LCmpConstantEqAndBranch( |
| 1574 UseRegisterAtStart(instr->value())); | 1574 UseRegisterAtStart(instr->value())); |
| 1575 } | 1575 } |
| 1576 | 1576 |
| 1577 | 1577 |
| 1578 LInstruction* LChunkBuilder::DoIsNilAndBranch(HIsNilAndBranch* instr) { | |
| 1579 ASSERT(instr->value()->representation().IsTagged()); | |
| 1580 return new(zone()) LIsNilAndBranch(UseRegisterAtStart(instr->value())); | |
| 1581 } | |
| 1582 | |
| 1583 | |
| 1584 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { | 1578 LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) { |
| 1585 ASSERT(instr->value()->representation().IsTagged()); | 1579 ASSERT(instr->value()->representation().IsTagged()); |
| 1586 LOperand* temp = TempRegister(); | 1580 LOperand* temp = TempRegister(); |
| 1587 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), | 1581 return new(zone()) LIsObjectAndBranch(UseRegisterAtStart(instr->value()), |
| 1588 temp); | 1582 temp); |
| 1589 } | 1583 } |
| 1590 | 1584 |
| 1591 | 1585 |
| 1592 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { | 1586 LInstruction* LChunkBuilder::DoIsStringAndBranch(HIsStringAndBranch* instr) { |
| 1593 ASSERT(instr->value()->representation().IsTagged()); | 1587 ASSERT(instr->value()->representation().IsTagged()); |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 | 2463 |
| 2470 | 2464 |
| 2471 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2465 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2472 LOperand* object = UseRegister(instr->object()); | 2466 LOperand* object = UseRegister(instr->object()); |
| 2473 LOperand* index = UseRegister(instr->index()); | 2467 LOperand* index = UseRegister(instr->index()); |
| 2474 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2468 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2475 } | 2469 } |
| 2476 | 2470 |
| 2477 | 2471 |
| 2478 } } // namespace v8::internal | 2472 } } // namespace v8::internal |
| OLD | NEW |