Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: src/x64/lithium-x64.h

Issue 7031074: Cleanup unused lithium instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V(ClassOfTest) \ 79 V(ClassOfTest) \
80 V(ClassOfTestAndBranch) \ 80 V(ClassOfTestAndBranch) \
81 V(CmpID) \ 81 V(CmpID) \
82 V(CmpIDAndBranch) \ 82 V(CmpIDAndBranch) \
83 V(CmpJSObjectEq) \ 83 V(CmpJSObjectEq) \
84 V(CmpJSObjectEqAndBranch) \ 84 V(CmpJSObjectEqAndBranch) \
85 V(CmpMapAndBranch) \ 85 V(CmpMapAndBranch) \
86 V(CmpSymbolEq) \ 86 V(CmpSymbolEq) \
87 V(CmpSymbolEqAndBranch) \ 87 V(CmpSymbolEqAndBranch) \
88 V(CmpT) \ 88 V(CmpT) \
89 V(CmpTAndBranch) \
90 V(ConstantD) \ 89 V(ConstantD) \
91 V(ConstantI) \ 90 V(ConstantI) \
92 V(ConstantT) \ 91 V(ConstantT) \
93 V(Context) \ 92 V(Context) \
94 V(DeleteProperty) \ 93 V(DeleteProperty) \
95 V(Deoptimize) \ 94 V(Deoptimize) \
96 V(DivI) \ 95 V(DivI) \
97 V(DoubleToI) \ 96 V(DoubleToI) \
98 V(ExternalArrayLength) \ 97 V(ExternalArrayLength) \
99 V(FixedArrayLength) \ 98 V(FixedArrayLength) \
100 V(FunctionLiteral) \ 99 V(FunctionLiteral) \
101 V(GetCachedArrayIndex) \ 100 V(GetCachedArrayIndex) \
102 V(GlobalObject) \ 101 V(GlobalObject) \
103 V(GlobalReceiver) \ 102 V(GlobalReceiver) \
104 V(Goto) \ 103 V(Goto) \
105 V(HasCachedArrayIndex) \ 104 V(HasCachedArrayIndex) \
106 V(HasCachedArrayIndexAndBranch) \ 105 V(HasCachedArrayIndexAndBranch) \
107 V(HasInstanceType) \ 106 V(HasInstanceType) \
108 V(HasInstanceTypeAndBranch) \ 107 V(HasInstanceTypeAndBranch) \
109 V(In) \ 108 V(In) \
110 V(InstanceOf) \ 109 V(InstanceOf) \
111 V(InstanceOfAndBranch) \
112 V(InstanceOfKnownGlobal) \ 110 V(InstanceOfKnownGlobal) \
113 V(InstructionGap) \ 111 V(InstructionGap) \
114 V(Integer32ToDouble) \ 112 V(Integer32ToDouble) \
115 V(InvokeFunction) \ 113 V(InvokeFunction) \
116 V(IsConstructCall) \ 114 V(IsConstructCall) \
117 V(IsConstructCallAndBranch) \ 115 V(IsConstructCallAndBranch) \
118 V(IsNull) \ 116 V(IsNull) \
119 V(IsNullAndBranch) \ 117 V(IsNullAndBranch) \
120 V(IsObject) \ 118 V(IsObject) \
121 V(IsObjectAndBranch) \ 119 V(IsObjectAndBranch) \
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 inputs_[1] = right; 886 inputs_[1] = right;
889 } 887 }
890 888
891 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 889 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
892 DECLARE_HYDROGEN_ACCESSOR(Compare) 890 DECLARE_HYDROGEN_ACCESSOR(Compare)
893 891
894 Token::Value op() const { return hydrogen()->token(); } 892 Token::Value op() const { return hydrogen()->token(); }
895 }; 893 };
896 894
897 895
898 class LCmpTAndBranch: public LControlInstruction<2, 0> {
899 public:
900 LCmpTAndBranch(LOperand* left, LOperand* right) {
901 inputs_[0] = left;
902 inputs_[1] = right;
903 }
904
905 DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch")
906 DECLARE_HYDROGEN_ACCESSOR(Compare)
907
908 Token::Value op() const { return hydrogen()->token(); }
909 };
910
911
912 class LIn: public LTemplateInstruction<1, 2, 0> { 896 class LIn: public LTemplateInstruction<1, 2, 0> {
913 public: 897 public:
914 LIn(LOperand* key, LOperand* object) { 898 LIn(LOperand* key, LOperand* object) {
915 inputs_[0] = key; 899 inputs_[0] = key;
916 inputs_[1] = object; 900 inputs_[1] = object;
917 } 901 }
918 902
919 LOperand* key() { return inputs_[0]; } 903 LOperand* key() { return inputs_[0]; }
920 LOperand* object() { return inputs_[1]; } 904 LOperand* object() { return inputs_[1]; }
921 905
922 DECLARE_CONCRETE_INSTRUCTION(In, "in") 906 DECLARE_CONCRETE_INSTRUCTION(In, "in")
923 }; 907 };
924 908
925 909
926 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { 910 class LInstanceOf: public LTemplateInstruction<1, 2, 0> {
927 public: 911 public:
928 LInstanceOf(LOperand* left, LOperand* right) { 912 LInstanceOf(LOperand* left, LOperand* right) {
929 inputs_[0] = left; 913 inputs_[0] = left;
930 inputs_[1] = right; 914 inputs_[1] = right;
931 } 915 }
932 916
933 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") 917 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
934 }; 918 };
935 919
936 920
937 class LInstanceOfAndBranch: public LControlInstruction<2, 0> {
938 public:
939 LInstanceOfAndBranch(LOperand* left, LOperand* right) {
940 inputs_[0] = left;
941 inputs_[1] = right;
942 }
943
944 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch")
945 };
946
947
948 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { 921 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> {
949 public: 922 public:
950 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { 923 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) {
951 inputs_[0] = value; 924 inputs_[0] = value;
952 temps_[0] = temp; 925 temps_[0] = temp;
953 } 926 }
954 927
955 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, 928 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal,
956 "instance-of-known-global") 929 "instance-of-known-global")
957 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) 930 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal)
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 2303
2331 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2304 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2332 }; 2305 };
2333 2306
2334 #undef DECLARE_HYDROGEN_ACCESSOR 2307 #undef DECLARE_HYDROGEN_ACCESSOR
2335 #undef DECLARE_CONCRETE_INSTRUCTION 2308 #undef DECLARE_CONCRETE_INSTRUCTION
2336 2309
2337 } } // namespace v8::int 2310 } } // namespace v8::int
2338 2311
2339 #endif // V8_X64_LITHIUM_X64_H_ 2312 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698