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

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

Issue 139233004: Remove the HValueOf instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 V(ThisFunction) \ 167 V(ThisFunction) \
168 V(Throw) \ 168 V(Throw) \
169 V(ToFastProperties) \ 169 V(ToFastProperties) \
170 V(TransitionElementsKind) \ 170 V(TransitionElementsKind) \
171 V(TrapAllocationMemento) \ 171 V(TrapAllocationMemento) \
172 V(Typeof) \ 172 V(Typeof) \
173 V(TypeofIsAndBranch) \ 173 V(TypeofIsAndBranch) \
174 V(Uint32ToDouble) \ 174 V(Uint32ToDouble) \
175 V(Uint32ToSmi) \ 175 V(Uint32ToSmi) \
176 V(UnknownOSRValue) \ 176 V(UnknownOSRValue) \
177 V(ValueOf) \
178 V(WrapReceiver) 177 V(WrapReceiver)
179 178
180 179
181 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 180 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
182 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 181 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
183 return LInstruction::k##type; \ 182 return LInstruction::k##type; \
184 } \ 183 } \
185 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 184 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
186 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ 185 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \
187 return mnemonic; \ 186 return mnemonic; \
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 inputs_[0] = value; 1241 inputs_[0] = value;
1243 } 1242 }
1244 1243
1245 LOperand* value() { return inputs_[0]; } 1244 LOperand* value() { return inputs_[0]; }
1246 1245
1247 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1246 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1248 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1247 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1249 }; 1248 };
1250 1249
1251 1250
1252 class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1253 public:
1254 explicit LValueOf(LOperand* value) {
1255 inputs_[0] = value;
1256 }
1257
1258 LOperand* value() { return inputs_[0]; }
1259
1260 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
1261 DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1262 };
1263
1264
1265 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1251 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1266 public: 1252 public:
1267 LDateField(LOperand* date, Smi* index) : index_(index) { 1253 LDateField(LOperand* date, Smi* index) : index_(index) {
1268 inputs_[0] = date; 1254 inputs_[0] = date;
1269 } 1255 }
1270 1256
1271 LOperand* date() { return inputs_[0]; } 1257 LOperand* date() { return inputs_[0]; }
1272 Smi* index() const { return index_; } 1258 Smi* index() const { return index_; }
1273 1259
1274 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") 1260 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 2679
2694 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2680 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2695 }; 2681 };
2696 2682
2697 #undef DECLARE_HYDROGEN_ACCESSOR 2683 #undef DECLARE_HYDROGEN_ACCESSOR
2698 #undef DECLARE_CONCRETE_INSTRUCTION 2684 #undef DECLARE_CONCRETE_INSTRUCTION
2699 2685
2700 } } // namespace v8::int 2686 } } // namespace v8::int
2701 2687
2702 #endif // V8_X64_LITHIUM_X64_H_ 2688 #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