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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 V(InstanceOfKnownGlobal) \ | 111 V(InstanceOfKnownGlobal) \ |
112 V(InstanceSize) \ | 112 V(InstanceSize) \ |
113 V(InstructionGap) \ | 113 V(InstructionGap) \ |
114 V(Integer32ToDouble) \ | 114 V(Integer32ToDouble) \ |
115 V(Integer32ToSmi) \ | 115 V(Integer32ToSmi) \ |
116 V(Uint32ToDouble) \ | 116 V(Uint32ToDouble) \ |
117 V(InvokeFunction) \ | 117 V(InvokeFunction) \ |
118 V(IsConstructCallAndBranch) \ | 118 V(IsConstructCallAndBranch) \ |
119 V(IsObjectAndBranch) \ | 119 V(IsObjectAndBranch) \ |
120 V(IsStringAndBranch) \ | 120 V(IsStringAndBranch) \ |
| 121 V(IsNumberAndBranch) \ |
121 V(IsSmiAndBranch) \ | 122 V(IsSmiAndBranch) \ |
122 V(IsUndetectableAndBranch) \ | 123 V(IsUndetectableAndBranch) \ |
123 V(Label) \ | 124 V(Label) \ |
124 V(LazyBailout) \ | 125 V(LazyBailout) \ |
125 V(LoadContextSlot) \ | 126 V(LoadContextSlot) \ |
126 V(LoadExternalArrayPointer) \ | 127 V(LoadExternalArrayPointer) \ |
127 V(LoadFunctionPrototype) \ | 128 V(LoadFunctionPrototype) \ |
128 V(LoadGlobalCell) \ | 129 V(LoadGlobalCell) \ |
129 V(LoadGlobalGeneric) \ | 130 V(LoadGlobalGeneric) \ |
130 V(LoadKeyed) \ | 131 V(LoadKeyed) \ |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 LOperand* value() { return inputs_[0]; } | 913 LOperand* value() { return inputs_[0]; } |
913 LOperand* temp() { return temps_[0]; } | 914 LOperand* temp() { return temps_[0]; } |
914 | 915 |
915 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 916 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
916 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 917 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
917 | 918 |
918 virtual void PrintDataTo(StringStream* stream); | 919 virtual void PrintDataTo(StringStream* stream); |
919 }; | 920 }; |
920 | 921 |
921 | 922 |
| 923 class LIsNumberAndBranch: public LControlInstruction<1, 0> { |
| 924 public: |
| 925 explicit LIsNumberAndBranch(LOperand* value) { |
| 926 inputs_[0] = value; |
| 927 } |
| 928 |
| 929 LOperand* value() { return inputs_[0]; } |
| 930 |
| 931 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 932 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 933 }; |
| 934 |
| 935 |
922 class LIsStringAndBranch: public LControlInstruction<1, 1> { | 936 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
923 public: | 937 public: |
924 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 938 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
925 inputs_[0] = value; | 939 inputs_[0] = value; |
926 temps_[0] = temp; | 940 temps_[0] = temp; |
927 } | 941 } |
928 | 942 |
929 LOperand* value() { return inputs_[0]; } | 943 LOperand* value() { return inputs_[0]; } |
930 LOperand* temp() { return temps_[0]; } | 944 LOperand* temp() { return temps_[0]; } |
931 | 945 |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 | 2823 |
2810 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2824 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2811 }; | 2825 }; |
2812 | 2826 |
2813 #undef DECLARE_HYDROGEN_ACCESSOR | 2827 #undef DECLARE_HYDROGEN_ACCESSOR |
2814 #undef DECLARE_CONCRETE_INSTRUCTION | 2828 #undef DECLARE_CONCRETE_INSTRUCTION |
2815 | 2829 |
2816 } } // namespace v8::internal | 2830 } } // namespace v8::internal |
2817 | 2831 |
2818 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2832 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |