| 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 V(MulI) \ | 146 V(MulI) \ |
| 147 V(NumberTagD) \ | 147 V(NumberTagD) \ |
| 148 V(NumberTagI) \ | 148 V(NumberTagI) \ |
| 149 V(NumberTagU) \ | 149 V(NumberTagU) \ |
| 150 V(NumberUntagD) \ | 150 V(NumberUntagD) \ |
| 151 V(OsrEntry) \ | 151 V(OsrEntry) \ |
| 152 V(OuterContext) \ | 152 V(OuterContext) \ |
| 153 V(Parameter) \ | 153 V(Parameter) \ |
| 154 V(Power) \ | 154 V(Power) \ |
| 155 V(PushArgument) \ | 155 V(PushArgument) \ |
| 156 V(Random) \ | |
| 157 V(RegExpLiteral) \ | 156 V(RegExpLiteral) \ |
| 158 V(Return) \ | 157 V(Return) \ |
| 159 V(SeqStringGetChar) \ | 158 V(SeqStringGetChar) \ |
| 160 V(SeqStringSetChar) \ | 159 V(SeqStringSetChar) \ |
| 161 V(ShiftI) \ | 160 V(ShiftI) \ |
| 162 V(SmiTag) \ | 161 V(SmiTag) \ |
| 163 V(SmiUntag) \ | 162 V(SmiUntag) \ |
| 164 V(StackCheck) \ | 163 V(StackCheck) \ |
| 165 V(StoreCodeEntry) \ | 164 V(StoreCodeEntry) \ |
| 166 V(StoreContextSlot) \ | 165 V(StoreContextSlot) \ |
| (...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 } | 1416 } |
| 1418 | 1417 |
| 1419 LOperand* left() { return inputs_[0]; } | 1418 LOperand* left() { return inputs_[0]; } |
| 1420 LOperand* right() { return inputs_[1]; } | 1419 LOperand* right() { return inputs_[1]; } |
| 1421 | 1420 |
| 1422 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1421 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
| 1423 DECLARE_HYDROGEN_ACCESSOR(Power) | 1422 DECLARE_HYDROGEN_ACCESSOR(Power) |
| 1424 }; | 1423 }; |
| 1425 | 1424 |
| 1426 | 1425 |
| 1427 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { | |
| 1428 public: | |
| 1429 LRandom(LOperand* global_object, | |
| 1430 LOperand* scratch, | |
| 1431 LOperand* scratch2, | |
| 1432 LOperand* scratch3) { | |
| 1433 inputs_[0] = global_object; | |
| 1434 temps_[0] = scratch; | |
| 1435 temps_[1] = scratch2; | |
| 1436 temps_[2] = scratch3; | |
| 1437 } | |
| 1438 | |
| 1439 LOperand* global_object() { return inputs_[0]; } | |
| 1440 LOperand* scratch() const { return temps_[0]; } | |
| 1441 LOperand* scratch2() const { return temps_[1]; } | |
| 1442 LOperand* scratch3() const { return temps_[2]; } | |
| 1443 | |
| 1444 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | |
| 1445 DECLARE_HYDROGEN_ACCESSOR(Random) | |
| 1446 }; | |
| 1447 | |
| 1448 | |
| 1449 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1426 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1450 public: | 1427 public: |
| 1451 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1428 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
| 1452 : op_(op) { | 1429 : op_(op) { |
| 1453 inputs_[0] = left; | 1430 inputs_[0] = left; |
| 1454 inputs_[1] = right; | 1431 inputs_[1] = right; |
| 1455 } | 1432 } |
| 1456 | 1433 |
| 1457 Token::Value op() const { return op_; } | 1434 Token::Value op() const { return op_; } |
| 1458 LOperand* left() { return inputs_[0]; } | 1435 LOperand* left() { return inputs_[0]; } |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2866 | 2843 |
| 2867 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2868 }; | 2845 }; |
| 2869 | 2846 |
| 2870 #undef DECLARE_HYDROGEN_ACCESSOR | 2847 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2871 #undef DECLARE_CONCRETE_INSTRUCTION | 2848 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2872 | 2849 |
| 2873 } } // namespace v8::int | 2850 } } // namespace v8::int |
| 2874 | 2851 |
| 2875 #endif // V8_X64_LITHIUM_X64_H_ | 2852 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |