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

Side by Side Diff: src/mips/lithium-mips.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/ia32/lithium-ia32.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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 V(ThisFunction) \ 168 V(ThisFunction) \
169 V(Throw) \ 169 V(Throw) \
170 V(ToFastProperties) \ 170 V(ToFastProperties) \
171 V(TransitionElementsKind) \ 171 V(TransitionElementsKind) \
172 V(TrapAllocationMemento) \ 172 V(TrapAllocationMemento) \
173 V(Typeof) \ 173 V(Typeof) \
174 V(TypeofIsAndBranch) \ 174 V(TypeofIsAndBranch) \
175 V(Uint32ToDouble) \ 175 V(Uint32ToDouble) \
176 V(Uint32ToSmi) \ 176 V(Uint32ToSmi) \
177 V(UnknownOSRValue) \ 177 V(UnknownOSRValue) \
178 V(ValueOf) \
179 V(WrapReceiver) 178 V(WrapReceiver)
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; \
188 } \ 187 } \
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 inputs_[0] = value; 1280 inputs_[0] = value;
1282 } 1281 }
1283 1282
1284 LOperand* value() { return inputs_[0]; } 1283 LOperand* value() { return inputs_[0]; }
1285 1284
1286 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") 1285 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1287 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) 1286 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1288 }; 1287 };
1289 1288
1290 1289
1291 class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 1> {
1292 public:
1293 LValueOf(LOperand* value, LOperand* temp) {
1294 inputs_[0] = value;
1295 temps_[0] = temp;
1296 }
1297
1298 LOperand* value() { return inputs_[0]; }
1299 LOperand* temp() { return temps_[0]; }
1300
1301 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of")
1302 DECLARE_HYDROGEN_ACCESSOR(ValueOf)
1303 };
1304
1305
1306 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { 1290 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> {
1307 public: 1291 public:
1308 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { 1292 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) {
1309 inputs_[0] = date; 1293 inputs_[0] = date;
1310 temps_[0] = temp; 1294 temps_[0] = temp;
1311 } 1295 }
1312 1296
1313 LOperand* date() { return inputs_[0]; } 1297 LOperand* date() { return inputs_[0]; }
1314 LOperand* temp() { return temps_[0]; } 1298 LOperand* temp() { return temps_[0]; }
1315 Smi* index() const { return index_; } 1299 Smi* index() const { return index_; }
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2740 2724
2741 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2725 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2742 }; 2726 };
2743 2727
2744 #undef DECLARE_HYDROGEN_ACCESSOR 2728 #undef DECLARE_HYDROGEN_ACCESSOR
2745 #undef DECLARE_CONCRETE_INSTRUCTION 2729 #undef DECLARE_CONCRETE_INSTRUCTION
2746 2730
2747 } } // namespace v8::internal 2731 } } // namespace v8::internal
2748 2732
2749 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2733 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698