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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 V(MulI) \ | 145 V(MulI) \ |
146 V(NumberTagD) \ | 146 V(NumberTagD) \ |
147 V(NumberTagI) \ | 147 V(NumberTagI) \ |
148 V(NumberTagU) \ | 148 V(NumberTagU) \ |
149 V(NumberUntagD) \ | 149 V(NumberUntagD) \ |
150 V(OsrEntry) \ | 150 V(OsrEntry) \ |
151 V(OuterContext) \ | 151 V(OuterContext) \ |
152 V(Parameter) \ | 152 V(Parameter) \ |
153 V(Power) \ | 153 V(Power) \ |
154 V(PushArgument) \ | 154 V(PushArgument) \ |
155 V(Random) \ | |
156 V(RegExpLiteral) \ | 155 V(RegExpLiteral) \ |
157 V(Return) \ | 156 V(Return) \ |
158 V(SeqStringGetChar) \ | 157 V(SeqStringGetChar) \ |
159 V(SeqStringSetChar) \ | 158 V(SeqStringSetChar) \ |
160 V(ShiftI) \ | 159 V(ShiftI) \ |
161 V(SmiTag) \ | 160 V(SmiTag) \ |
162 V(SmiUntag) \ | 161 V(SmiUntag) \ |
163 V(StackCheck) \ | 162 V(StackCheck) \ |
164 V(StoreCodeEntry) \ | 163 V(StoreCodeEntry) \ |
165 V(StoreContextSlot) \ | 164 V(StoreContextSlot) \ |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 } | 1398 } |
1400 | 1399 |
1401 LOperand* left() { return inputs_[0]; } | 1400 LOperand* left() { return inputs_[0]; } |
1402 LOperand* right() { return inputs_[1]; } | 1401 LOperand* right() { return inputs_[1]; } |
1403 | 1402 |
1404 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1403 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1405 DECLARE_HYDROGEN_ACCESSOR(Power) | 1404 DECLARE_HYDROGEN_ACCESSOR(Power) |
1406 }; | 1405 }; |
1407 | 1406 |
1408 | 1407 |
1409 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { | |
1410 public: | |
1411 LRandom(LOperand* global_object, | |
1412 LOperand* scratch, | |
1413 LOperand* scratch2, | |
1414 LOperand* scratch3) { | |
1415 inputs_[0] = global_object; | |
1416 temps_[0] = scratch; | |
1417 temps_[1] = scratch2; | |
1418 temps_[2] = scratch3; | |
1419 } | |
1420 | |
1421 LOperand* global_object() { return inputs_[0]; } | |
1422 LOperand* scratch() const { return temps_[0]; } | |
1423 LOperand* scratch2() const { return temps_[1]; } | |
1424 LOperand* scratch3() const { return temps_[2]; } | |
1425 | |
1426 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | |
1427 DECLARE_HYDROGEN_ACCESSOR(Random) | |
1428 }; | |
1429 | |
1430 | |
1431 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1408 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1432 public: | 1409 public: |
1433 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1410 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1434 : op_(op) { | 1411 : op_(op) { |
1435 inputs_[0] = left; | 1412 inputs_[0] = left; |
1436 inputs_[1] = right; | 1413 inputs_[1] = right; |
1437 } | 1414 } |
1438 | 1415 |
1439 Token::Value op() const { return op_; } | 1416 Token::Value op() const { return op_; } |
1440 LOperand* left() { return inputs_[0]; } | 1417 LOperand* left() { return inputs_[0]; } |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2848 | 2825 |
2849 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2826 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2850 }; | 2827 }; |
2851 | 2828 |
2852 #undef DECLARE_HYDROGEN_ACCESSOR | 2829 #undef DECLARE_HYDROGEN_ACCESSOR |
2853 #undef DECLARE_CONCRETE_INSTRUCTION | 2830 #undef DECLARE_CONCRETE_INSTRUCTION |
2854 | 2831 |
2855 } } // namespace v8::int | 2832 } } // namespace v8::int |
2856 | 2833 |
2857 #endif // V8_X64_LITHIUM_X64_H_ | 2834 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |