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

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

Issue 19562003: Add support for IncrementCounter in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: And another try Created 7 years, 4 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(CompareNumericAndBranch) \ 78 V(CompareNumericAndBranch) \
79 V(CmpObjectEqAndBranch) \ 79 V(CmpObjectEqAndBranch) \
80 V(CmpMapAndBranch) \ 80 V(CmpMapAndBranch) \
81 V(CmpT) \ 81 V(CmpT) \
82 V(ConstantD) \ 82 V(ConstantD) \
83 V(ConstantE) \
83 V(ConstantI) \ 84 V(ConstantI) \
84 V(ConstantS) \ 85 V(ConstantS) \
85 V(ConstantT) \ 86 V(ConstantT) \
86 V(Context) \ 87 V(Context) \
87 V(DateField) \ 88 V(DateField) \
88 V(DebugBreak) \ 89 V(DebugBreak) \
89 V(DeclareGlobals) \ 90 V(DeclareGlobals) \
90 V(Deoptimize) \ 91 V(Deoptimize) \
91 V(DivI) \ 92 V(DivI) \
92 V(DoubleToI) \ 93 V(DoubleToI) \
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1202
1202 LOperand* temp() { return temps_[0]; } 1203 LOperand* temp() { return temps_[0]; }
1203 1204
1204 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") 1205 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
1205 DECLARE_HYDROGEN_ACCESSOR(Constant) 1206 DECLARE_HYDROGEN_ACCESSOR(Constant)
1206 1207
1207 double value() const { return hydrogen()->DoubleValue(); } 1208 double value() const { return hydrogen()->DoubleValue(); }
1208 }; 1209 };
1209 1210
1210 1211
1212 class LConstantE: public LTemplateInstruction<1, 0, 0> {
1213 public:
1214 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e")
1215 DECLARE_HYDROGEN_ACCESSOR(Constant)
1216
1217 ExternalReference value() const {
1218 return hydrogen()->ExternalReferenceValue();
1219 }
1220 };
1221
1222
1211 class LConstantT: public LTemplateInstruction<1, 0, 0> { 1223 class LConstantT: public LTemplateInstruction<1, 0, 0> {
1212 public: 1224 public:
1213 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") 1225 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
1214 DECLARE_HYDROGEN_ACCESSOR(Constant) 1226 DECLARE_HYDROGEN_ACCESSOR(Constant)
1215 1227
1216 Handle<Object> value() const { return hydrogen()->handle(); } 1228 Handle<Object> value() const { return hydrogen()->handle(); }
1217 }; 1229 };
1218 1230
1219 1231
1220 class LBranch: public LControlInstruction<1, 1> { 1232 class LBranch: public LControlInstruction<1, 1> {
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2940 2952
2941 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2953 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2942 }; 2954 };
2943 2955
2944 #undef DECLARE_HYDROGEN_ACCESSOR 2956 #undef DECLARE_HYDROGEN_ACCESSOR
2945 #undef DECLARE_CONCRETE_INSTRUCTION 2957 #undef DECLARE_CONCRETE_INSTRUCTION
2946 2958
2947 } } // namespace v8::internal 2959 } } // namespace v8::internal
2948 2960
2949 #endif // V8_IA32_LITHIUM_IA32_H_ 2961 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698