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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 | 683 |
684 LOperand* left() { return inputs_[0]; } | 684 LOperand* left() { return inputs_[0]; } |
685 LOperand* right() { return inputs_[1]; } | 685 LOperand* right() { return inputs_[1]; } |
686 LOperand* temp() { return temps_[0]; } | 686 LOperand* temp() { return temps_[0]; } |
687 | 687 |
688 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 688 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
689 DECLARE_HYDROGEN_ACCESSOR(Mul) | 689 DECLARE_HYDROGEN_ACCESSOR(Mul) |
690 }; | 690 }; |
691 | 691 |
692 | 692 |
693 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 693 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
694 public: | 694 public: |
695 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 695 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
696 inputs_[0] = left; | 696 inputs_[0] = left; |
697 inputs_[1] = right; | 697 inputs_[1] = right; |
698 } | 698 } |
699 | 699 |
700 LOperand* left() { return inputs_[0]; } | 700 LOperand* left() { return inputs_[0]; } |
701 LOperand* right() { return inputs_[1]; } | 701 LOperand* right() { return inputs_[1]; } |
702 | 702 |
703 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 703 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
704 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 704 "compare-numeric-and-branch") |
| 705 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
705 | 706 |
706 Token::Value op() const { return hydrogen()->token(); } | 707 Token::Value op() const { return hydrogen()->token(); } |
707 bool is_double() const { | 708 bool is_double() const { |
708 return hydrogen()->representation().IsDouble(); | 709 return hydrogen()->representation().IsDouble(); |
709 } | 710 } |
710 | 711 |
711 virtual void PrintDataTo(StringStream* stream); | 712 virtual void PrintDataTo(StringStream* stream); |
712 }; | 713 }; |
713 | 714 |
714 | 715 |
(...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 | 3000 |
3000 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3001 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3001 }; | 3002 }; |
3002 | 3003 |
3003 #undef DECLARE_HYDROGEN_ACCESSOR | 3004 #undef DECLARE_HYDROGEN_ACCESSOR |
3004 #undef DECLARE_CONCRETE_INSTRUCTION | 3005 #undef DECLARE_CONCRETE_INSTRUCTION |
3005 | 3006 |
3006 } } // namespace v8::internal | 3007 } } // namespace v8::internal |
3007 | 3008 |
3008 #endif // V8_IA32_LITHIUM_IA32_H_ | 3009 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |