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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2027 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { | 2027 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { |
2028 public: | 2028 public: |
2029 LSmiUntag(LOperand* value, bool needs_check) | 2029 LSmiUntag(LOperand* value, bool needs_check) |
2030 : needs_check_(needs_check) { | 2030 : needs_check_(needs_check) { |
2031 inputs_[0] = value; | 2031 inputs_[0] = value; |
2032 } | 2032 } |
2033 | 2033 |
2034 LOperand* value() { return inputs_[0]; } | 2034 LOperand* value() { return inputs_[0]; } |
2035 bool needs_check() const { return needs_check_; } | 2035 bool needs_check() const { return needs_check_; } |
2036 | 2036 |
| 2037 DECLARE_HYDROGEN_ACCESSOR(Change); |
2037 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") | 2038 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") |
2038 | 2039 |
2039 private: | 2040 private: |
2040 bool needs_check_; | 2041 bool needs_check_; |
2041 }; | 2042 }; |
2042 | 2043 |
2043 | 2044 |
2044 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { | 2045 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { |
2045 public: | 2046 public: |
2046 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { | 2047 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2756 | 2757 |
2757 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2758 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2758 }; | 2759 }; |
2759 | 2760 |
2760 #undef DECLARE_HYDROGEN_ACCESSOR | 2761 #undef DECLARE_HYDROGEN_ACCESSOR |
2761 #undef DECLARE_CONCRETE_INSTRUCTION | 2762 #undef DECLARE_CONCRETE_INSTRUCTION |
2762 | 2763 |
2763 } } // namespace v8::internal | 2764 } } // namespace v8::internal |
2764 | 2765 |
2765 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2766 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |