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 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2062 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { | 2062 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { |
2063 public: | 2063 public: |
2064 LSmiUntag(LOperand* value, bool needs_check) | 2064 LSmiUntag(LOperand* value, bool needs_check) |
2065 : needs_check_(needs_check) { | 2065 : needs_check_(needs_check) { |
2066 inputs_[0] = value; | 2066 inputs_[0] = value; |
2067 } | 2067 } |
2068 | 2068 |
2069 LOperand* value() { return inputs_[0]; } | 2069 LOperand* value() { return inputs_[0]; } |
2070 bool needs_check() const { return needs_check_; } | 2070 bool needs_check() const { return needs_check_; } |
2071 | 2071 |
2072 DECLARE_HYDROGEN_ACCESSOR(Change); | |
2073 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") | 2072 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") |
2074 | 2073 |
2075 private: | 2074 private: |
2076 bool needs_check_; | 2075 bool needs_check_; |
2077 }; | 2076 }; |
2078 | 2077 |
2079 | 2078 |
2080 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { | 2079 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { |
2081 public: | 2080 public: |
2082 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { | 2081 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 | 2800 |
2802 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2803 }; | 2802 }; |
2804 | 2803 |
2805 #undef DECLARE_HYDROGEN_ACCESSOR | 2804 #undef DECLARE_HYDROGEN_ACCESSOR |
2806 #undef DECLARE_CONCRETE_INSTRUCTION | 2805 #undef DECLARE_CONCRETE_INSTRUCTION |
2807 | 2806 |
2808 } } // namespace v8::internal | 2807 } } // namespace v8::internal |
2809 | 2808 |
2810 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2809 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |