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

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

Issue 15932011: Don't explicitly pass requested representations to constants; implement ConstantS (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | src/arm/lithium-arm.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 V(ClampIToUint8) \ 80 V(ClampIToUint8) \
81 V(ClampTToUint8) \ 81 V(ClampTToUint8) \
82 V(ClassOfTestAndBranch) \ 82 V(ClassOfTestAndBranch) \
83 V(CmpConstantEqAndBranch) \ 83 V(CmpConstantEqAndBranch) \
84 V(CmpIDAndBranch) \ 84 V(CmpIDAndBranch) \
85 V(CmpObjectEqAndBranch) \ 85 V(CmpObjectEqAndBranch) \
86 V(CmpMapAndBranch) \ 86 V(CmpMapAndBranch) \
87 V(CmpT) \ 87 V(CmpT) \
88 V(ConstantD) \ 88 V(ConstantD) \
89 V(ConstantI) \ 89 V(ConstantI) \
90 V(ConstantS) \
90 V(ConstantT) \ 91 V(ConstantT) \
91 V(Context) \ 92 V(Context) \
92 V(DebugBreak) \ 93 V(DebugBreak) \
93 V(DeclareGlobals) \ 94 V(DeclareGlobals) \
94 V(DeleteProperty) \ 95 V(DeleteProperty) \
95 V(Deoptimize) \ 96 V(Deoptimize) \
96 V(DivI) \ 97 V(DivI) \
97 V(DoubleToI) \ 98 V(DoubleToI) \
98 V(DoubleToSmi) \ 99 V(DoubleToSmi) \
99 V(DummyUse) \ 100 V(DummyUse) \
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 1200
1200 class LConstantI: public LTemplateInstruction<1, 0, 0> { 1201 class LConstantI: public LTemplateInstruction<1, 0, 0> {
1201 public: 1202 public:
1202 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") 1203 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i")
1203 DECLARE_HYDROGEN_ACCESSOR(Constant) 1204 DECLARE_HYDROGEN_ACCESSOR(Constant)
1204 1205
1205 int32_t value() const { return hydrogen()->Integer32Value(); } 1206 int32_t value() const { return hydrogen()->Integer32Value(); }
1206 }; 1207 };
1207 1208
1208 1209
1210 class LConstantS: public LTemplateInstruction<1, 0, 0> {
1211 public:
1212 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s")
1213 DECLARE_HYDROGEN_ACCESSOR(Constant)
1214
1215 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); }
1216 };
1217
1218
1209 class LConstantD: public LTemplateInstruction<1, 0, 0> { 1219 class LConstantD: public LTemplateInstruction<1, 0, 0> {
1210 public: 1220 public:
1211 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") 1221 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
1212 DECLARE_HYDROGEN_ACCESSOR(Constant) 1222 DECLARE_HYDROGEN_ACCESSOR(Constant)
1213 1223
1214 double value() const { return hydrogen()->DoubleValue(); } 1224 double value() const { return hydrogen()->DoubleValue(); }
1215 }; 1225 };
1216 1226
1217 1227
1218 class LConstantT: public LTemplateInstruction<1, 0, 0> { 1228 class LConstantT: public LTemplateInstruction<1, 0, 0> {
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2851 2861
2852 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2862 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2853 }; 2863 };
2854 2864
2855 #undef DECLARE_HYDROGEN_ACCESSOR 2865 #undef DECLARE_HYDROGEN_ACCESSOR
2856 #undef DECLARE_CONCRETE_INSTRUCTION 2866 #undef DECLARE_CONCRETE_INSTRUCTION
2857 2867
2858 } } // namespace v8::internal 2868 } } // namespace v8::internal
2859 2869
2860 #endif // V8_ARM_LITHIUM_ARM_H_ 2870 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698