OLD | NEW |
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 135 matching lines...) Loading... |
146 V(ModI) \ | 146 V(ModI) \ |
147 V(MulI) \ | 147 V(MulI) \ |
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(Random) \ | |
157 V(PushArgument) \ | 156 V(PushArgument) \ |
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) \ |
(...skipping 1269 matching lines...) Loading... |
1436 } | 1435 } |
1437 | 1436 |
1438 LOperand* left() { return inputs_[0]; } | 1437 LOperand* left() { return inputs_[0]; } |
1439 LOperand* right() { return inputs_[1]; } | 1438 LOperand* right() { return inputs_[1]; } |
1440 | 1439 |
1441 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1440 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1442 DECLARE_HYDROGEN_ACCESSOR(Power) | 1441 DECLARE_HYDROGEN_ACCESSOR(Power) |
1443 }; | 1442 }; |
1444 | 1443 |
1445 | 1444 |
1446 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { | |
1447 public: | |
1448 LRandom(LOperand* global_object, | |
1449 LOperand* scratch, | |
1450 LOperand* scratch2, | |
1451 LOperand* scratch3) { | |
1452 inputs_[0] = global_object; | |
1453 temps_[0] = scratch; | |
1454 temps_[1] = scratch2; | |
1455 temps_[2] = scratch3; | |
1456 } | |
1457 | |
1458 LOperand* global_object() const { return inputs_[0]; } | |
1459 LOperand* scratch() const { return temps_[0]; } | |
1460 LOperand* scratch2() const { return temps_[1]; } | |
1461 LOperand* scratch3() const { return temps_[2]; } | |
1462 | |
1463 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | |
1464 DECLARE_HYDROGEN_ACCESSOR(Random) | |
1465 }; | |
1466 | |
1467 | |
1468 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1445 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1469 public: | 1446 public: |
1470 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1447 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1471 : op_(op) { | 1448 : op_(op) { |
1472 inputs_[0] = left; | 1449 inputs_[0] = left; |
1473 inputs_[1] = right; | 1450 inputs_[1] = right; |
1474 } | 1451 } |
1475 | 1452 |
1476 LOperand* left() { return inputs_[0]; } | 1453 LOperand* left() { return inputs_[0]; } |
1477 LOperand* right() { return inputs_[1]; } | 1454 LOperand* right() { return inputs_[1]; } |
(...skipping 1460 matching lines...) Loading... |
2938 | 2915 |
2939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2940 }; | 2917 }; |
2941 | 2918 |
2942 #undef DECLARE_HYDROGEN_ACCESSOR | 2919 #undef DECLARE_HYDROGEN_ACCESSOR |
2943 #undef DECLARE_CONCRETE_INSTRUCTION | 2920 #undef DECLARE_CONCRETE_INSTRUCTION |
2944 | 2921 |
2945 } } // namespace v8::internal | 2922 } } // namespace v8::internal |
2946 | 2923 |
2947 #endif // V8_IA32_LITHIUM_IA32_H_ | 2924 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |