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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 V(CheckSmi) \ 72 V(CheckSmi) \
73 V(ClampDToUint8) \ 73 V(ClampDToUint8) \
74 V(ClampIToUint8) \ 74 V(ClampIToUint8) \
75 V(ClampTToUint8) \ 75 V(ClampTToUint8) \
76 V(ClassOfTestAndBranch) \ 76 V(ClassOfTestAndBranch) \
77 V(CompareNumericAndBranch) \ 77 V(CompareNumericAndBranch) \
78 V(CmpObjectEqAndBranch) \ 78 V(CmpObjectEqAndBranch) \
79 V(CmpMapAndBranch) \ 79 V(CmpMapAndBranch) \
80 V(CmpT) \ 80 V(CmpT) \
81 V(ConstantD) \ 81 V(ConstantD) \
82 V(ConstantE) \
82 V(ConstantI) \ 83 V(ConstantI) \
83 V(ConstantS) \ 84 V(ConstantS) \
84 V(ConstantT) \ 85 V(ConstantT) \
85 V(Context) \ 86 V(Context) \
86 V(DateField) \ 87 V(DateField) \
87 V(DebugBreak) \ 88 V(DebugBreak) \
88 V(DeclareGlobals) \ 89 V(DeclareGlobals) \
89 V(Deoptimize) \ 90 V(Deoptimize) \
90 V(DivI) \ 91 V(DivI) \
91 V(DoubleToI) \ 92 V(DoubleToI) \
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 1204
1204 class LConstantD: public LTemplateInstruction<1, 0, 0> { 1205 class LConstantD: public LTemplateInstruction<1, 0, 0> {
1205 public: 1206 public:
1206 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") 1207 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d")
1207 DECLARE_HYDROGEN_ACCESSOR(Constant) 1208 DECLARE_HYDROGEN_ACCESSOR(Constant)
1208 1209
1209 double value() const { return hydrogen()->DoubleValue(); } 1210 double value() const { return hydrogen()->DoubleValue(); }
1210 }; 1211 };
1211 1212
1212 1213
1214 class LConstantE: public LTemplateInstruction<1, 0, 0> {
1215 public:
1216 DECLARE_CONCRETE_INSTRUCTION(ConstantE, "constant-e")
1217 DECLARE_HYDROGEN_ACCESSOR(Constant)
1218
1219 ExternalReference value() const {
1220 return hydrogen()->ExternalReferenceValue();
1221 }
1222 };
1223
1224
1213 class LConstantT: public LTemplateInstruction<1, 0, 0> { 1225 class LConstantT: public LTemplateInstruction<1, 0, 0> {
1214 public: 1226 public:
1215 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") 1227 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
1216 DECLARE_HYDROGEN_ACCESSOR(Constant) 1228 DECLARE_HYDROGEN_ACCESSOR(Constant)
1217 1229
1218 Handle<Object> value() const { return hydrogen()->handle(); } 1230 Handle<Object> value() const { return hydrogen()->handle(); }
1219 }; 1231 };
1220 1232
1221 1233
1222 class LBranch: public LControlInstruction<1, 0> { 1234 class LBranch: public LControlInstruction<1, 0> {
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 2784
2773 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2785 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2774 }; 2786 };
2775 2787
2776 #undef DECLARE_HYDROGEN_ACCESSOR 2788 #undef DECLARE_HYDROGEN_ACCESSOR
2777 #undef DECLARE_CONCRETE_INSTRUCTION 2789 #undef DECLARE_CONCRETE_INSTRUCTION
2778 2790
2779 } } // namespace v8::internal 2791 } } // namespace v8::internal
2780 2792
2781 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2793 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698