Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: src/arm/lithium-arm.h

Issue 21499002: Get rid of HStringLength. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 V(StoreGlobalCell) \ 168 V(StoreGlobalCell) \
169 V(StoreGlobalGeneric) \ 169 V(StoreGlobalGeneric) \
170 V(StoreKeyed) \ 170 V(StoreKeyed) \
171 V(StoreKeyedGeneric) \ 171 V(StoreKeyedGeneric) \
172 V(StoreNamedField) \ 172 V(StoreNamedField) \
173 V(StoreNamedGeneric) \ 173 V(StoreNamedGeneric) \
174 V(StringAdd) \ 174 V(StringAdd) \
175 V(StringCharCodeAt) \ 175 V(StringCharCodeAt) \
176 V(StringCharFromCode) \ 176 V(StringCharFromCode) \
177 V(StringCompareAndBranch) \ 177 V(StringCompareAndBranch) \
178 V(StringLength) \
179 V(SubI) \ 178 V(SubI) \
180 V(RSubI) \ 179 V(RSubI) \
181 V(TaggedToI) \ 180 V(TaggedToI) \
182 V(ThisFunction) \ 181 V(ThisFunction) \
183 V(Throw) \ 182 V(Throw) \
184 V(ToFastProperties) \ 183 V(ToFastProperties) \
185 V(TransitionElementsKind) \ 184 V(TransitionElementsKind) \
186 V(TrapAllocationMemento) \ 185 V(TrapAllocationMemento) \
187 V(Typeof) \ 186 V(Typeof) \
188 V(TypeofIsAndBranch) \ 187 V(TypeofIsAndBranch) \
(...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2307 inputs_[0] = char_code; 2306 inputs_[0] = char_code;
2308 } 2307 }
2309 2308
2310 LOperand* char_code() { return inputs_[0]; } 2309 LOperand* char_code() { return inputs_[0]; }
2311 2310
2312 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") 2311 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
2313 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) 2312 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
2314 }; 2313 };
2315 2314
2316 2315
2317 class LStringLength: public LTemplateInstruction<1, 1, 0> {
2318 public:
2319 explicit LStringLength(LOperand* string) {
2320 inputs_[0] = string;
2321 }
2322
2323 LOperand* string() { return inputs_[0]; }
2324
2325 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
2326 DECLARE_HYDROGEN_ACCESSOR(StringLength)
2327 };
2328
2329
2330 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { 2316 class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
2331 public: 2317 public:
2332 explicit LCheckFunction(LOperand* value) { 2318 explicit LCheckFunction(LOperand* value) {
2333 inputs_[0] = value; 2319 inputs_[0] = value;
2334 } 2320 }
2335 2321
2336 LOperand* value() { return inputs_[0]; } 2322 LOperand* value() { return inputs_[0]; }
2337 2323
2338 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") 2324 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
2339 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) 2325 DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 2779
2794 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2780 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2795 }; 2781 };
2796 2782
2797 #undef DECLARE_HYDROGEN_ACCESSOR 2783 #undef DECLARE_HYDROGEN_ACCESSOR
2798 #undef DECLARE_CONCRETE_INSTRUCTION 2784 #undef DECLARE_CONCRETE_INSTRUCTION
2799 2785
2800 } } // namespace v8::internal 2786 } } // namespace v8::internal
2801 2787
2802 #endif // V8_ARM_LITHIUM_ARM_H_ 2788 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698