| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 V(StoreGlobalCell) \ | 167 V(StoreGlobalCell) \ |
| 168 V(StoreGlobalGeneric) \ | 168 V(StoreGlobalGeneric) \ |
| 169 V(StoreKeyed) \ | 169 V(StoreKeyed) \ |
| 170 V(StoreKeyedGeneric) \ | 170 V(StoreKeyedGeneric) \ |
| 171 V(StoreNamedField) \ | 171 V(StoreNamedField) \ |
| 172 V(StoreNamedGeneric) \ | 172 V(StoreNamedGeneric) \ |
| 173 V(StringAdd) \ | 173 V(StringAdd) \ |
| 174 V(StringCharCodeAt) \ | 174 V(StringCharCodeAt) \ |
| 175 V(StringCharFromCode) \ | 175 V(StringCharFromCode) \ |
| 176 V(StringCompareAndBranch) \ | 176 V(StringCompareAndBranch) \ |
| 177 V(StringLength) \ | |
| 178 V(SubI) \ | 177 V(SubI) \ |
| 179 V(TaggedToI) \ | 178 V(TaggedToI) \ |
| 180 V(ThisFunction) \ | 179 V(ThisFunction) \ |
| 181 V(Throw) \ | 180 V(Throw) \ |
| 182 V(ToFastProperties) \ | 181 V(ToFastProperties) \ |
| 183 V(TransitionElementsKind) \ | 182 V(TransitionElementsKind) \ |
| 184 V(TrapAllocationMemento) \ | 183 V(TrapAllocationMemento) \ |
| 185 V(Typeof) \ | 184 V(Typeof) \ |
| 186 V(TypeofIsAndBranch) \ | 185 V(TypeofIsAndBranch) \ |
| 187 V(Uint32ToDouble) \ | 186 V(Uint32ToDouble) \ |
| (...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2279 inputs_[0] = char_code; | 2278 inputs_[0] = char_code; |
| 2280 } | 2279 } |
| 2281 | 2280 |
| 2282 LOperand* char_code() { return inputs_[0]; } | 2281 LOperand* char_code() { return inputs_[0]; } |
| 2283 | 2282 |
| 2284 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") | 2283 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") |
| 2285 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) | 2284 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) |
| 2286 }; | 2285 }; |
| 2287 | 2286 |
| 2288 | 2287 |
| 2289 class LStringLength: public LTemplateInstruction<1, 1, 0> { | |
| 2290 public: | |
| 2291 explicit LStringLength(LOperand* string) { | |
| 2292 inputs_[0] = string; | |
| 2293 } | |
| 2294 | |
| 2295 LOperand* string() { return inputs_[0]; } | |
| 2296 | |
| 2297 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") | |
| 2298 DECLARE_HYDROGEN_ACCESSOR(StringLength) | |
| 2299 }; | |
| 2300 | |
| 2301 | |
| 2302 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { | 2288 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { |
| 2303 public: | 2289 public: |
| 2304 explicit LCheckFunction(LOperand* value) { | 2290 explicit LCheckFunction(LOperand* value) { |
| 2305 inputs_[0] = value; | 2291 inputs_[0] = value; |
| 2306 } | 2292 } |
| 2307 | 2293 |
| 2308 LOperand* value() { return inputs_[0]; } | 2294 LOperand* value() { return inputs_[0]; } |
| 2309 | 2295 |
| 2310 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") | 2296 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") |
| 2311 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) | 2297 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2766 | 2752 |
| 2767 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2768 }; | 2754 }; |
| 2769 | 2755 |
| 2770 #undef DECLARE_HYDROGEN_ACCESSOR | 2756 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2771 #undef DECLARE_CONCRETE_INSTRUCTION | 2757 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2772 | 2758 |
| 2773 } } // namespace v8::internal | 2759 } } // namespace v8::internal |
| 2774 | 2760 |
| 2775 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2761 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |