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

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

Issue 80513004: Revert 17963, 17962 and 17955: Random number generator in JS changes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove Yang's changes, too 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
« 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 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) \
157 V(RegExpLiteral) \ 158 V(RegExpLiteral) \
158 V(Return) \ 159 V(Return) \
159 V(SeqStringGetChar) \ 160 V(SeqStringGetChar) \
160 V(SeqStringSetChar) \ 161 V(SeqStringSetChar) \
161 V(ShiftI) \ 162 V(ShiftI) \
162 V(SmiTag) \ 163 V(SmiTag) \
163 V(SmiUntag) \ 164 V(SmiUntag) \
164 V(StackCheck) \ 165 V(StackCheck) \
165 V(StoreCodeEntry) \ 166 V(StoreCodeEntry) \
166 V(StoreContextSlot) \ 167 V(StoreContextSlot) \
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 } 1454 }
1454 1455
1455 LOperand* left() { return inputs_[0]; } 1456 LOperand* left() { return inputs_[0]; }
1456 LOperand* right() { return inputs_[1]; } 1457 LOperand* right() { return inputs_[1]; }
1457 1458
1458 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1459 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1459 DECLARE_HYDROGEN_ACCESSOR(Power) 1460 DECLARE_HYDROGEN_ACCESSOR(Power)
1460 }; 1461 };
1461 1462
1462 1463
1464 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> {
1465 public:
1466 LRandom(LOperand* global_object,
1467 LOperand* scratch,
1468 LOperand* scratch2,
1469 LOperand* scratch3) {
1470 inputs_[0] = global_object;
1471 temps_[0] = scratch;
1472 temps_[1] = scratch2;
1473 temps_[2] = scratch3;
1474 }
1475
1476 LOperand* global_object() const { return inputs_[0]; }
1477 LOperand* scratch() const { return temps_[0]; }
1478 LOperand* scratch2() const { return temps_[1]; }
1479 LOperand* scratch3() const { return temps_[2]; }
1480
1481 DECLARE_CONCRETE_INSTRUCTION(Random, "random")
1482 DECLARE_HYDROGEN_ACCESSOR(Random)
1483 };
1484
1485
1463 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1486 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1464 public: 1487 public:
1465 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) 1488 LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1466 : op_(op) { 1489 : op_(op) {
1467 inputs_[0] = left; 1490 inputs_[0] = left;
1468 inputs_[1] = right; 1491 inputs_[1] = right;
1469 } 1492 }
1470 1493
1471 Token::Value op() const { return op_; } 1494 Token::Value op() const { return op_; }
1472 LOperand* left() { return inputs_[0]; } 1495 LOperand* left() { return inputs_[0]; }
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2888 2911
2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2912 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2890 }; 2913 };
2891 2914
2892 #undef DECLARE_HYDROGEN_ACCESSOR 2915 #undef DECLARE_HYDROGEN_ACCESSOR
2893 #undef DECLARE_CONCRETE_INSTRUCTION 2916 #undef DECLARE_CONCRETE_INSTRUCTION
2894 2917
2895 } } // namespace v8::internal 2918 } } // namespace v8::internal
2896 2919
2897 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2920 #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