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(TaggedToINoSSE2) \ | 179 V(TaggedToINoSSE2) \ |
181 V(ThisFunction) \ | 180 V(ThisFunction) \ |
182 V(Throw) \ | 181 V(Throw) \ |
183 V(ToFastProperties) \ | 182 V(ToFastProperties) \ |
184 V(TransitionElementsKind) \ | 183 V(TransitionElementsKind) \ |
185 V(TrapAllocationMemento) \ | 184 V(TrapAllocationMemento) \ |
186 V(Typeof) \ | 185 V(Typeof) \ |
187 V(TypeofIsAndBranch) \ | 186 V(TypeofIsAndBranch) \ |
(...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2404 } | 2403 } |
2405 | 2404 |
2406 LOperand* context() { return inputs_[0]; } | 2405 LOperand* context() { return inputs_[0]; } |
2407 LOperand* char_code() { return inputs_[1]; } | 2406 LOperand* char_code() { return inputs_[1]; } |
2408 | 2407 |
2409 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") | 2408 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") |
2410 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) | 2409 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) |
2411 }; | 2410 }; |
2412 | 2411 |
2413 | 2412 |
2414 class LStringLength: public LTemplateInstruction<1, 1, 0> { | |
2415 public: | |
2416 explicit LStringLength(LOperand* string) { | |
2417 inputs_[0] = string; | |
2418 } | |
2419 | |
2420 LOperand* string() { return inputs_[0]; } | |
2421 | |
2422 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") | |
2423 DECLARE_HYDROGEN_ACCESSOR(StringLength) | |
2424 }; | |
2425 | |
2426 | |
2427 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { | 2413 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { |
2428 public: | 2414 public: |
2429 explicit LCheckFunction(LOperand* value) { | 2415 explicit LCheckFunction(LOperand* value) { |
2430 inputs_[0] = value; | 2416 inputs_[0] = value; |
2431 } | 2417 } |
2432 | 2418 |
2433 LOperand* value() { return inputs_[0]; } | 2419 LOperand* value() { return inputs_[0]; } |
2434 | 2420 |
2435 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") | 2421 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") |
2436 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) | 2422 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2932 | 2918 |
2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2934 }; | 2920 }; |
2935 | 2921 |
2936 #undef DECLARE_HYDROGEN_ACCESSOR | 2922 #undef DECLARE_HYDROGEN_ACCESSOR |
2937 #undef DECLARE_CONCRETE_INSTRUCTION | 2923 #undef DECLARE_CONCRETE_INSTRUCTION |
2938 | 2924 |
2939 } } // namespace v8::internal | 2925 } } // namespace v8::internal |
2940 | 2926 |
2941 #endif // V8_IA32_LITHIUM_IA32_H_ | 2927 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |