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

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

Issue 155723005: A64: Synchronize with r19001. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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/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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(DateField) \ 84 V(DateField) \
85 V(DebugBreak) \ 85 V(DebugBreak) \
86 V(DeclareGlobals) \ 86 V(DeclareGlobals) \
87 V(Deoptimize) \ 87 V(Deoptimize) \
88 V(DivI) \ 88 V(DivI) \
89 V(DoubleToI) \ 89 V(DoubleToI) \
90 V(DoubleToSmi) \ 90 V(DoubleToSmi) \
91 V(Drop) \ 91 V(Drop) \
92 V(Dummy) \ 92 V(Dummy) \
93 V(DummyUse) \ 93 V(DummyUse) \
94 V(ElementsKind) \
95 V(ForInCacheArray) \ 94 V(ForInCacheArray) \
96 V(ForInPrepareMap) \ 95 V(ForInPrepareMap) \
97 V(FunctionLiteral) \ 96 V(FunctionLiteral) \
98 V(GetCachedArrayIndex) \ 97 V(GetCachedArrayIndex) \
99 V(Goto) \ 98 V(Goto) \
100 V(HasCachedArrayIndexAndBranch) \ 99 V(HasCachedArrayIndexAndBranch) \
101 V(HasInstanceTypeAndBranch) \ 100 V(HasInstanceTypeAndBranch) \
102 V(InnerAllocatedObject) \ 101 V(InnerAllocatedObject) \
103 V(InstanceOf) \ 102 V(InstanceOf) \
104 V(InstanceOfKnownGlobal) \ 103 V(InstanceOfKnownGlobal) \
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 V(StoreKeyedGeneric) \ 158 V(StoreKeyedGeneric) \
160 V(StoreNamedField) \ 159 V(StoreNamedField) \
161 V(StoreNamedGeneric) \ 160 V(StoreNamedGeneric) \
162 V(StringAdd) \ 161 V(StringAdd) \
163 V(StringCharCodeAt) \ 162 V(StringCharCodeAt) \
164 V(StringCharFromCode) \ 163 V(StringCharFromCode) \
165 V(StringCompareAndBranch) \ 164 V(StringCompareAndBranch) \
166 V(SubI) \ 165 V(SubI) \
167 V(TaggedToI) \ 166 V(TaggedToI) \
168 V(ThisFunction) \ 167 V(ThisFunction) \
169 V(Throw) \
170 V(ToFastProperties) \ 168 V(ToFastProperties) \
171 V(TransitionElementsKind) \ 169 V(TransitionElementsKind) \
172 V(TrapAllocationMemento) \ 170 V(TrapAllocationMemento) \
173 V(Typeof) \ 171 V(Typeof) \
174 V(TypeofIsAndBranch) \ 172 V(TypeofIsAndBranch) \
175 V(Uint32ToDouble) \ 173 V(Uint32ToDouble) \
176 V(Uint32ToSmi) \ 174 V(Uint32ToSmi) \
177 V(UnknownOSRValue) \ 175 V(UnknownOSRValue) \
178 V(ValueOf) \
179 V(WrapReceiver) 176 V(WrapReceiver)
180 177
181 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 178 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
182 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 179 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
183 return LInstruction::k##type; \ 180 return LInstruction::k##type; \
184 } \ 181 } \
185 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 182 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
186 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ 183 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \
187 return mnemonic; \ 184 return mnemonic; \
188 } \ 185 } \
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 541
545 542
546 class LWrapReceiver V8_FINAL : public LTemplateInstruction<1, 2, 0> { 543 class LWrapReceiver V8_FINAL : public LTemplateInstruction<1, 2, 0> {
547 public: 544 public:
548 LWrapReceiver(LOperand* receiver, LOperand* function) { 545 LWrapReceiver(LOperand* receiver, LOperand* function) {
549 inputs_[0] = receiver; 546 inputs_[0] = receiver;
550 inputs_[1] = function; 547 inputs_[1] = function;
551 } 548 }
552 549
553 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") 550 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
551 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver)
554 552
555 LOperand* receiver() { return inputs_[0]; } 553 LOperand* receiver() { return inputs_[0]; }
556 LOperand* function() { return inputs_[1]; } 554 LOperand* function() { return inputs_[1]; }
557 }; 555 };
558 556
559 557
560 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> { 558 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> {
561 public: 559 public:
562 LApplyArguments(LOperand* function, 560 LApplyArguments(LOperand* function,
563 LOperand* receiver, 561 LOperand* receiver,
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 explicit LMapEnumLength(LOperand* value) { 1266 explicit LMapEnumLength(LOperand* value) {
1269 inputs_[0] = value; 1267 inputs_[0] = value;
1270 } 1268 }
1271 1269
1272 LOperand* value() { return inputs_[0]; } 1270 LOperand* value() { return inputs_[0]; }
1273 1271
1274 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") 1272 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1275 }; 1273 };
1276 1274
1277 1275
1278 class LElementsKind V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1279 public:
1280 explicit LElementsKind(LOperand* value) {
1281 inputs_[0] = value;
1282 }
1283
1284 LOperand* value() { return inputs_[0]; }
1285
1286 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind")
1287 DECLARE_HYDROGEN_ACCESSOR(ElementsKind)
1288 };
1289
1290
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> { 1276 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> {
1307 public: 1277 public:
1308 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { 1278 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) {
1309 inputs_[0] = date; 1279 inputs_[0] = date;
1310 temps_[0] = temp; 1280 temps_[0] = temp;
1311 } 1281 }
1312 1282
1313 LOperand* date() { return inputs_[0]; } 1283 LOperand* date() { return inputs_[0]; }
1314 LOperand* temp() { return temps_[0]; } 1284 LOperand* temp() { return temps_[0]; }
1315 Smi* index() const { return index_; } 1285 Smi* index() const { return index_; }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 1321
1352 LOperand* string() { return inputs_[1]; } 1322 LOperand* string() { return inputs_[1]; }
1353 LOperand* index() { return inputs_[2]; } 1323 LOperand* index() { return inputs_[2]; }
1354 LOperand* value() { return inputs_[3]; } 1324 LOperand* value() { return inputs_[3]; }
1355 1325
1356 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1326 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1357 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1327 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1358 }; 1328 };
1359 1329
1360 1330
1361 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1362 public:
1363 LThrow(LOperand* context, LOperand* value) {
1364 inputs_[0] = context;
1365 inputs_[1] = value;
1366 }
1367
1368 LOperand* context() { return inputs_[0]; }
1369 LOperand* value() { return inputs_[1]; }
1370
1371 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
1372 };
1373
1374
1375 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1331 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1376 public: 1332 public:
1377 LAddI(LOperand* left, LOperand* right) { 1333 LAddI(LOperand* left, LOperand* right) {
1378 inputs_[0] = left; 1334 inputs_[0] = left;
1379 inputs_[1] = right; 1335 inputs_[1] = right;
1380 } 1336 }
1381 1337
1382 LOperand* left() { return inputs_[0]; } 1338 LOperand* left() { return inputs_[0]; }
1383 LOperand* right() { return inputs_[1]; } 1339 LOperand* right() { return inputs_[1]; }
1384 1340
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2740 2696
2741 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2697 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2742 }; 2698 };
2743 2699
2744 #undef DECLARE_HYDROGEN_ACCESSOR 2700 #undef DECLARE_HYDROGEN_ACCESSOR
2745 #undef DECLARE_CONCRETE_INSTRUCTION 2701 #undef DECLARE_CONCRETE_INSTRUCTION
2746 2702
2747 } } // namespace v8::internal 2703 } } // namespace v8::internal
2748 2704
2749 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2705 #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