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

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

Issue 19562003: Add support for IncrementCounter in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Using HConstant, HLoadKeyed, HAdd and HStoreKeyed. Created 7 years, 5 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 V(ClampDToUint8) \ 78 V(ClampDToUint8) \
79 V(ClampIToUint8) \ 79 V(ClampIToUint8) \
80 V(ClampTToUint8) \ 80 V(ClampTToUint8) \
81 V(ClassOfTestAndBranch) \ 81 V(ClassOfTestAndBranch) \
82 V(CmpConstantEqAndBranch) \ 82 V(CmpConstantEqAndBranch) \
83 V(CompareNumericAndBranch) \ 83 V(CompareNumericAndBranch) \
84 V(CmpObjectEqAndBranch) \ 84 V(CmpObjectEqAndBranch) \
85 V(CmpMapAndBranch) \ 85 V(CmpMapAndBranch) \
86 V(CmpT) \ 86 V(CmpT) \
87 V(ConstantD) \ 87 V(ConstantD) \
88 V(ConstantE) \
88 V(ConstantI) \ 89 V(ConstantI) \
89 V(ConstantS) \ 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(Deoptimize) \ 95 V(Deoptimize) \
95 V(DivI) \ 96 V(DivI) \
96 V(DoubleToI) \ 97 V(DoubleToI) \
97 V(DoubleToSmi) \ 98 V(DoubleToSmi) \
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1180
1180 LOperand* temp() { return temps_[0]; } 1181 LOperand* temp() { return temps_[0]; }
1181 1182
1182 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") 1183 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
1183 DECLARE_HYDROGEN_ACCESSOR(Constant) 1184 DECLARE_HYDROGEN_ACCESSOR(Constant)
1184 1185
1185 double value() const { return hydrogen()->DoubleValue(); } 1186 double value() const { return hydrogen()->DoubleValue(); }
1186 }; 1187 };
1187 1188
1188 1189
1190 class LConstantE: public LTemplateInstruction<1, 0, 0> {
1191 public:
1192 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e")
1193 DECLARE_HYDROGEN_ACCESSOR(Constant)
1194
1195 ExternalReference value() const { return hydrogen()->ExternalValue(); }
1196 };
1197
1198
1189 class LConstantT: public LTemplateInstruction<1, 0, 0> { 1199 class LConstantT: public LTemplateInstruction<1, 0, 0> {
1190 public: 1200 public:
1191 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") 1201 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
1192 DECLARE_HYDROGEN_ACCESSOR(Constant) 1202 DECLARE_HYDROGEN_ACCESSOR(Constant)
1193 1203
1194 Handle<Object> value() const { return hydrogen()->handle(); } 1204 Handle<Object> value() const { return hydrogen()->handle(); }
1195 }; 1205 };
1196 1206
1197 1207
1198 class LBranch: public LControlInstruction<1, 0> { 1208 class LBranch: public LControlInstruction<1, 0> {
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 2736
2727 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2737 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2728 }; 2738 };
2729 2739
2730 #undef DECLARE_HYDROGEN_ACCESSOR 2740 #undef DECLARE_HYDROGEN_ACCESSOR
2731 #undef DECLARE_CONCRETE_INSTRUCTION 2741 #undef DECLARE_CONCRETE_INSTRUCTION
2732 2742
2733 } } // namespace v8::int 2743 } } // namespace v8::int
2734 2744
2735 #endif // V8_X64_LITHIUM_X64_H_ 2745 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698