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 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 LOperand* right = UseFixed(instr->right(), a0); | 1621 LOperand* right = UseFixed(instr->right(), a0); |
1622 LCmpT* result = new(zone()) LCmpT(left, right); | 1622 LCmpT* result = new(zone()) LCmpT(left, right); |
1623 return MarkAsCall(DefineFixed(result, v0), instr); | 1623 return MarkAsCall(DefineFixed(result, v0), instr); |
1624 } | 1624 } |
1625 | 1625 |
1626 | 1626 |
1627 LInstruction* LChunkBuilder::DoCompareNumericAndBranch( | 1627 LInstruction* LChunkBuilder::DoCompareNumericAndBranch( |
1628 HCompareNumericAndBranch* instr) { | 1628 HCompareNumericAndBranch* instr) { |
1629 Representation r = instr->representation(); | 1629 Representation r = instr->representation(); |
1630 if (r.IsSmiOrInteger32()) { | 1630 if (r.IsSmiOrInteger32()) { |
1631 ASSERT(instr->left()->representation().IsSmiOrInteger32()); | 1631 ASSERT(instr->left()->representation().Equals(r)); |
1632 ASSERT(instr->left()->representation().Equals( | 1632 ASSERT(instr->right()->representation().Equals(r)); |
1633 instr->right()->representation())); | |
1634 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); | 1633 LOperand* left = UseRegisterOrConstantAtStart(instr->left()); |
1635 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); | 1634 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
1636 return new(zone()) LCompareNumericAndBranch(left, right); | 1635 return new(zone()) LCompareNumericAndBranch(left, right); |
1637 } else { | 1636 } else { |
1638 ASSERT(r.IsDouble()); | 1637 ASSERT(r.IsDouble()); |
1639 ASSERT(instr->left()->representation().IsDouble()); | 1638 ASSERT(instr->left()->representation().IsDouble()); |
1640 ASSERT(instr->right()->representation().IsDouble()); | 1639 ASSERT(instr->right()->representation().IsDouble()); |
1641 LOperand* left = UseRegisterAtStart(instr->left()); | 1640 LOperand* left = UseRegisterAtStart(instr->left()); |
1642 LOperand* right = UseRegisterAtStart(instr->right()); | 1641 LOperand* right = UseRegisterAtStart(instr->right()); |
1643 return new(zone()) LCompareNumericAndBranch(left, right); | 1642 return new(zone()) LCompareNumericAndBranch(left, right); |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 | 2513 |
2515 | 2514 |
2516 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2515 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2517 LOperand* object = UseRegister(instr->object()); | 2516 LOperand* object = UseRegister(instr->object()); |
2518 LOperand* index = UseRegister(instr->index()); | 2517 LOperand* index = UseRegister(instr->index()); |
2519 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2518 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2520 } | 2519 } |
2521 | 2520 |
2522 | 2521 |
2523 } } // namespace v8::internal | 2522 } } // namespace v8::internal |
OLD | NEW |