| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 V(CheckInstanceType) \ | 68 V(CheckInstanceType) \ |
| 69 V(CheckMaps) \ | 69 V(CheckMaps) \ |
| 70 V(CheckNonSmi) \ | 70 V(CheckNonSmi) \ |
| 71 V(CheckPrototypeMaps) \ | 71 V(CheckPrototypeMaps) \ |
| 72 V(CheckSmi) \ | 72 V(CheckSmi) \ |
| 73 V(ClampDToUint8) \ | 73 V(ClampDToUint8) \ |
| 74 V(ClampIToUint8) \ | 74 V(ClampIToUint8) \ |
| 75 V(ClampTToUint8) \ | 75 V(ClampTToUint8) \ |
| 76 V(ClampTToUint8NoSSE2) \ | 76 V(ClampTToUint8NoSSE2) \ |
| 77 V(ClassOfTestAndBranch) \ | 77 V(ClassOfTestAndBranch) \ |
| 78 V(CmpIDAndBranch) \ | 78 V(CompareNumericAndBranch) \ |
| 79 V(CmpObjectEqAndBranch) \ | 79 V(CmpObjectEqAndBranch) \ |
| 80 V(CmpMapAndBranch) \ | 80 V(CmpMapAndBranch) \ |
| 81 V(CmpT) \ | 81 V(CmpT) \ |
| 82 V(CmpConstantEqAndBranch) \ | 82 V(CmpConstantEqAndBranch) \ |
| 83 V(ConstantD) \ | 83 V(ConstantD) \ |
| 84 V(ConstantI) \ | 84 V(ConstantI) \ |
| 85 V(ConstantS) \ | 85 V(ConstantS) \ |
| 86 V(ConstantT) \ | 86 V(ConstantT) \ |
| 87 V(Context) \ | 87 V(Context) \ |
| 88 V(DebugBreak) \ | 88 V(DebugBreak) \ |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 670 |
| 671 LOperand* left() { return inputs_[0]; } | 671 LOperand* left() { return inputs_[0]; } |
| 672 LOperand* right() { return inputs_[1]; } | 672 LOperand* right() { return inputs_[1]; } |
| 673 LOperand* temp() { return temps_[0]; } | 673 LOperand* temp() { return temps_[0]; } |
| 674 | 674 |
| 675 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 675 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
| 676 DECLARE_HYDROGEN_ACCESSOR(Mul) | 676 DECLARE_HYDROGEN_ACCESSOR(Mul) |
| 677 }; | 677 }; |
| 678 | 678 |
| 679 | 679 |
| 680 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 680 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
| 681 public: | 681 public: |
| 682 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 682 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
| 683 inputs_[0] = left; | 683 inputs_[0] = left; |
| 684 inputs_[1] = right; | 684 inputs_[1] = right; |
| 685 } | 685 } |
| 686 | 686 |
| 687 LOperand* left() { return inputs_[0]; } | 687 LOperand* left() { return inputs_[0]; } |
| 688 LOperand* right() { return inputs_[1]; } | 688 LOperand* right() { return inputs_[1]; } |
| 689 | 689 |
| 690 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 690 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
| 691 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 691 "compare-numeric-and-branch") |
| 692 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
| 692 | 693 |
| 693 Token::Value op() const { return hydrogen()->token(); } | 694 Token::Value op() const { return hydrogen()->token(); } |
| 694 bool is_double() const { | 695 bool is_double() const { |
| 695 return hydrogen()->representation().IsDouble(); | 696 return hydrogen()->representation().IsDouble(); |
| 696 } | 697 } |
| 697 | 698 |
| 698 virtual void PrintDataTo(StringStream* stream); | 699 virtual void PrintDataTo(StringStream* stream); |
| 699 }; | 700 }; |
| 700 | 701 |
| 701 | 702 |
| (...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2987 | 2988 |
| 2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2989 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2989 }; | 2990 }; |
| 2990 | 2991 |
| 2991 #undef DECLARE_HYDROGEN_ACCESSOR | 2992 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2992 #undef DECLARE_CONCRETE_INSTRUCTION | 2993 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2993 | 2994 |
| 2994 } } // namespace v8::internal | 2995 } } // namespace v8::internal |
| 2995 | 2996 |
| 2996 #endif // V8_IA32_LITHIUM_IA32_H_ | 2997 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |