| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 24 matching lines...) Expand all Loading... |
| 35 #include "utils.h" | 35 #include "utils.h" |
| 36 | 36 |
| 37 namespace v8 { | 37 namespace v8 { |
| 38 namespace internal { | 38 namespace internal { |
| 39 | 39 |
| 40 // Forward declarations. | 40 // Forward declarations. |
| 41 class LCodeGen; | 41 class LCodeGen; |
| 42 | 42 |
| 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 44 V(AccessArgumentsAt) \ | 44 V(AccessArgumentsAt) \ |
| 45 V(AddE) \ |
| 45 V(AddI) \ | 46 V(AddI) \ |
| 46 V(AddS) \ | 47 V(AddS) \ |
| 47 V(Allocate) \ | 48 V(Allocate) \ |
| 48 V(ApplyArguments) \ | 49 V(ApplyArguments) \ |
| 49 V(ArgumentsElements) \ | 50 V(ArgumentsElements) \ |
| 50 V(ArgumentsLength) \ | 51 V(ArgumentsLength) \ |
| 51 V(ArithmeticD) \ | 52 V(ArithmeticD) \ |
| 52 V(ArithmeticT) \ | 53 V(ArithmeticT) \ |
| 53 V(BitI) \ | 54 V(BitI) \ |
| 54 V(BitS) \ | 55 V(BitS) \ |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 556 |
| 556 LOperand* arguments() { return inputs_[0]; } | 557 LOperand* arguments() { return inputs_[0]; } |
| 557 LOperand* length() { return inputs_[1]; } | 558 LOperand* length() { return inputs_[1]; } |
| 558 LOperand* index() { return inputs_[2]; } | 559 LOperand* index() { return inputs_[2]; } |
| 559 LOperand* temp() { return temps_[0]; } | 560 LOperand* temp() { return temps_[0]; } |
| 560 | 561 |
| 561 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 562 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 562 }; | 563 }; |
| 563 | 564 |
| 564 | 565 |
| 566 class LAddE V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 567 public: |
| 568 LAddE(LOperand* left, LOperand* right) { |
| 569 inputs_[0] = left; |
| 570 inputs_[1] = right; |
| 571 } |
| 572 |
| 573 LOperand* left() { return inputs_[0]; } |
| 574 LOperand* right() { return inputs_[1]; } |
| 575 |
| 576 DECLARE_CONCRETE_INSTRUCTION(AddE, "add-e") |
| 577 DECLARE_HYDROGEN_ACCESSOR(Add) |
| 578 }; |
| 579 |
| 580 |
| 565 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 581 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 566 public: | 582 public: |
| 567 LAddI(LOperand* left, LOperand* right) { | 583 LAddI(LOperand* left, LOperand* right) { |
| 568 inputs_[0] = left; | 584 inputs_[0] = left; |
| 569 inputs_[1] = right; | 585 inputs_[1] = right; |
| 570 } | 586 } |
| 571 | 587 |
| 572 LOperand* left() { return inputs_[0]; } | 588 LOperand* left() { return inputs_[0]; } |
| 573 LOperand* right() { return inputs_[1]; } | 589 LOperand* right() { return inputs_[1]; } |
| 574 | 590 |
| (...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2946 | 2962 |
| 2947 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2963 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2948 }; | 2964 }; |
| 2949 | 2965 |
| 2950 #undef DECLARE_HYDROGEN_ACCESSOR | 2966 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2951 #undef DECLARE_CONCRETE_INSTRUCTION | 2967 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2952 | 2968 |
| 2953 } } // namespace v8::internal | 2969 } } // namespace v8::internal |
| 2954 | 2970 |
| 2955 #endif // V8_A64_LITHIUM_A64_H_ | 2971 #endif // V8_A64_LITHIUM_A64_H_ |
| OLD | NEW |