| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 | 517 |
| 518 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { | 518 class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { |
| 519 public: | 519 public: |
| 520 LArgumentsElements() { } | 520 LArgumentsElements() { } |
| 521 | 521 |
| 522 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") | 522 DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") |
| 523 }; | 523 }; |
| 524 | 524 |
| 525 | 525 |
| 526 class LModI: public LTemplateInstruction<1, 2, 0> { | 526 class LModI: public LTemplateInstruction<1, 2, 3> { |
| 527 public: | 527 public: |
| 528 LModI(LOperand* left, LOperand* right) { | 528 // Used when the right hand is a constant power of 2. |
| 529 LModI(LOperand* left, |
| 530 LOperand* right) { |
| 529 inputs_[0] = left; | 531 inputs_[0] = left; |
| 530 inputs_[1] = right; | 532 inputs_[1] = right; |
| 533 temps_[0] = NULL; |
| 534 temps_[1] = NULL; |
| 535 temps_[2] = NULL; |
| 536 } |
| 537 |
| 538 // Used for the standard case. |
| 539 LModI(LOperand* left, |
| 540 LOperand* right, |
| 541 LOperand* temp1, |
| 542 LOperand* temp2, |
| 543 LOperand* temp3) { |
| 544 inputs_[0] = left; |
| 545 inputs_[1] = right; |
| 546 temps_[0] = temp1; |
| 547 temps_[1] = temp2; |
| 548 temps_[2] = temp3; |
| 531 } | 549 } |
| 532 | 550 |
| 533 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i") | 551 DECLARE_CONCRETE_INSTRUCTION(ModI, "mod-i") |
| 534 DECLARE_HYDROGEN_ACCESSOR(Mod) | 552 DECLARE_HYDROGEN_ACCESSOR(Mod) |
| 535 }; | 553 }; |
| 536 | 554 |
| 537 | 555 |
| 538 class LDivI: public LTemplateInstruction<1, 2, 0> { | 556 class LDivI: public LTemplateInstruction<1, 2, 0> { |
| 539 public: | 557 public: |
| 540 LDivI(LOperand* left, LOperand* right) { | 558 LDivI(LOperand* left, LOperand* right) { |
| (...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2100 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2118 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2101 }; | 2119 }; |
| 2102 | 2120 |
| 2103 #undef DECLARE_HYDROGEN_ACCESSOR | 2121 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2104 #undef DECLARE_INSTRUCTION | 2122 #undef DECLARE_INSTRUCTION |
| 2105 #undef DECLARE_CONCRETE_INSTRUCTION | 2123 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2106 | 2124 |
| 2107 } } // namespace v8::internal | 2125 } } // namespace v8::internal |
| 2108 | 2126 |
| 2109 #endif // V8_ARM_LITHIUM_ARM_H_ | 2127 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |