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

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

Issue 110573004: Merge bleeding_edge 17696:18016. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 V(MultiplyAddD) \ 147 V(MultiplyAddD) \
148 V(NumberTagD) \ 148 V(NumberTagD) \
149 V(NumberTagI) \ 149 V(NumberTagI) \
150 V(NumberTagU) \ 150 V(NumberTagU) \
151 V(NumberUntagD) \ 151 V(NumberUntagD) \
152 V(OsrEntry) \ 152 V(OsrEntry) \
153 V(OuterContext) \ 153 V(OuterContext) \
154 V(Parameter) \ 154 V(Parameter) \
155 V(Power) \ 155 V(Power) \
156 V(PushArgument) \ 156 V(PushArgument) \
157 V(Random) \
158 V(RegExpLiteral) \ 157 V(RegExpLiteral) \
159 V(Return) \ 158 V(Return) \
160 V(SeqStringGetChar) \ 159 V(SeqStringGetChar) \
161 V(SeqStringSetChar) \ 160 V(SeqStringSetChar) \
162 V(ShiftI) \ 161 V(ShiftI) \
163 V(SmiTag) \ 162 V(SmiTag) \
164 V(SmiUntag) \ 163 V(SmiUntag) \
165 V(StackCheck) \ 164 V(StackCheck) \
166 V(StoreCodeEntry) \ 165 V(StoreCodeEntry) \
167 V(StoreContextSlot) \ 166 V(StoreContextSlot) \
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 } 1373 }
1375 1374
1376 LOperand* string() const { return inputs_[0]; } 1375 LOperand* string() const { return inputs_[0]; }
1377 LOperand* index() const { return inputs_[1]; } 1376 LOperand* index() const { return inputs_[1]; }
1378 1377
1379 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") 1378 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1380 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) 1379 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1381 }; 1380 };
1382 1381
1383 1382
1384 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1383 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 4, 0> {
1385 public: 1384 public:
1386 LSeqStringSetChar(LOperand* string, 1385 LSeqStringSetChar(LOperand* context,
1386 LOperand* string,
1387 LOperand* index, 1387 LOperand* index,
1388 LOperand* value) { 1388 LOperand* value) {
1389 inputs_[0] = string; 1389 inputs_[0] = context;
1390 inputs_[1] = index; 1390 inputs_[1] = string;
1391 inputs_[2] = value; 1391 inputs_[2] = index;
1392 inputs_[3] = value;
1392 } 1393 }
1393 1394
1394 LOperand* string() { return inputs_[0]; } 1395 LOperand* string() { return inputs_[1]; }
1395 LOperand* index() { return inputs_[1]; } 1396 LOperand* index() { return inputs_[2]; }
1396 LOperand* value() { return inputs_[2]; } 1397 LOperand* value() { return inputs_[3]; }
1397 1398
1398 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1399 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1399 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1400 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1400 }; 1401 };
1401 1402
1402 1403
1403 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1404 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1404 public: 1405 public:
1405 LThrow(LOperand* context, LOperand* value) { 1406 LThrow(LOperand* context, LOperand* value) {
1406 inputs_[0] = context; 1407 inputs_[0] = context;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 } 1453 }
1453 1454
1454 LOperand* left() { return inputs_[0]; } 1455 LOperand* left() { return inputs_[0]; }
1455 LOperand* right() { return inputs_[1]; } 1456 LOperand* right() { return inputs_[1]; }
1456 1457
1457 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1458 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1458 DECLARE_HYDROGEN_ACCESSOR(Power) 1459 DECLARE_HYDROGEN_ACCESSOR(Power)
1459 }; 1460 };
1460 1461
1461 1462
1462 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> {
1463 public:
1464 LRandom(LOperand* global_object,
1465 LOperand* scratch,
1466 LOperand* scratch2,
1467 LOperand* scratch3) {
1468 inputs_[0] = global_object;
1469 temps_[0] = scratch;
1470 temps_[1] = scratch2;
1471 temps_[2] = scratch3;
1472 }
1473
1474 LOperand* global_object() const { return inputs_[0]; }
1475 LOperand* scratch() const { return temps_[0]; }
1476 LOperand* scratch2() const { return temps_[1]; }
1477 LOperand* scratch3() const { return temps_[2]; }
1478
1479 DECLARE_CONCRETE_INSTRUCTION(Random, "random")
1480 DECLARE_HYDROGEN_ACCESSOR(Random)
1481 };
1482
1483
1484 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1463 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1485 public: 1464 public:
1486 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) 1465 LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1487 : op_(op) { 1466 : op_(op) {
1488 inputs_[0] = left; 1467 inputs_[0] = left;
1489 inputs_[1] = right; 1468 inputs_[1] = right;
1490 } 1469 }
1491 1470
1492 Token::Value op() const { return op_; } 1471 Token::Value op() const { return op_; }
1493 LOperand* left() { return inputs_[0]; } 1472 LOperand* left() { return inputs_[0]; }
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 2888
2910 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2911 }; 2890 };
2912 2891
2913 #undef DECLARE_HYDROGEN_ACCESSOR 2892 #undef DECLARE_HYDROGEN_ACCESSOR
2914 #undef DECLARE_CONCRETE_INSTRUCTION 2893 #undef DECLARE_CONCRETE_INSTRUCTION
2915 2894
2916 } } // namespace v8::internal 2895 } } // namespace v8::internal
2917 2896
2918 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2897 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698