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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 V(InstanceSize) \ | 113 V(InstanceSize) \ |
114 V(InstructionGap) \ | 114 V(InstructionGap) \ |
115 V(Integer32ToDouble) \ | 115 V(Integer32ToDouble) \ |
116 V(Integer32ToSmi) \ | 116 V(Integer32ToSmi) \ |
117 V(Uint32ToDouble) \ | 117 V(Uint32ToDouble) \ |
118 V(InvokeFunction) \ | 118 V(InvokeFunction) \ |
119 V(IsConstructCallAndBranch) \ | 119 V(IsConstructCallAndBranch) \ |
120 V(IsObjectAndBranch) \ | 120 V(IsObjectAndBranch) \ |
121 V(IsStringAndBranch) \ | 121 V(IsStringAndBranch) \ |
122 V(IsSmiAndBranch) \ | 122 V(IsSmiAndBranch) \ |
123 V(IsNumberAndBranch) \ | |
124 V(IsUndetectableAndBranch) \ | 123 V(IsUndetectableAndBranch) \ |
125 V(Label) \ | 124 V(Label) \ |
126 V(LazyBailout) \ | 125 V(LazyBailout) \ |
127 V(LoadContextSlot) \ | 126 V(LoadContextSlot) \ |
128 V(LoadExternalArrayPointer) \ | 127 V(LoadExternalArrayPointer) \ |
129 V(LoadFunctionPrototype) \ | 128 V(LoadFunctionPrototype) \ |
130 V(LoadGlobalCell) \ | 129 V(LoadGlobalCell) \ |
131 V(LoadGlobalGeneric) \ | 130 V(LoadGlobalGeneric) \ |
132 V(LoadKeyed) \ | 131 V(LoadKeyed) \ |
133 V(LoadKeyedGeneric) \ | 132 V(LoadKeyedGeneric) \ |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 | 859 |
861 LOperand* value() { return inputs_[0]; } | 860 LOperand* value() { return inputs_[0]; } |
862 | 861 |
863 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 862 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
864 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 863 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
865 | 864 |
866 virtual void PrintDataTo(StringStream* stream); | 865 virtual void PrintDataTo(StringStream* stream); |
867 }; | 866 }; |
868 | 867 |
869 | 868 |
870 class LIsNumberAndBranch: public LControlInstruction<1, 0> { | |
871 public: | |
872 explicit LIsNumberAndBranch(LOperand* value) { | |
873 inputs_[0] = value; | |
874 } | |
875 | |
876 LOperand* value() { return inputs_[0]; } | |
877 | |
878 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") | |
879 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) | |
880 }; | |
881 | |
882 | |
883 class LIsStringAndBranch: public LControlInstruction<1, 1> { | 869 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
884 public: | 870 public: |
885 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { | 871 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { |
886 inputs_[0] = value; | 872 inputs_[0] = value; |
887 temps_[0] = temp; | 873 temps_[0] = temp; |
888 } | 874 } |
889 | 875 |
890 LOperand* value() { return inputs_[0]; } | 876 LOperand* value() { return inputs_[0]; } |
891 LOperand* temp() { return temps_[0]; } | 877 LOperand* temp() { return temps_[0]; } |
892 | 878 |
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 | 2737 |
2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2738 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2753 }; | 2739 }; |
2754 | 2740 |
2755 #undef DECLARE_HYDROGEN_ACCESSOR | 2741 #undef DECLARE_HYDROGEN_ACCESSOR |
2756 #undef DECLARE_CONCRETE_INSTRUCTION | 2742 #undef DECLARE_CONCRETE_INSTRUCTION |
2757 | 2743 |
2758 } } // namespace v8::int | 2744 } } // namespace v8::int |
2759 | 2745 |
2760 #endif // V8_X64_LITHIUM_X64_H_ | 2746 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |