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

Side by Side Diff: src/x64/lithium-x64.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 | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 V(StoreGlobalCell) \ 166 V(StoreGlobalCell) \
167 V(StoreGlobalGeneric) \ 167 V(StoreGlobalGeneric) \
168 V(StoreKeyed) \ 168 V(StoreKeyed) \
169 V(StoreKeyedGeneric) \ 169 V(StoreKeyedGeneric) \
170 V(StoreNamedField) \ 170 V(StoreNamedField) \
171 V(StoreNamedGeneric) \ 171 V(StoreNamedGeneric) \
172 V(StringAdd) \ 172 V(StringAdd) \
173 V(StringCharCodeAt) \ 173 V(StringCharCodeAt) \
174 V(StringCharFromCode) \ 174 V(StringCharFromCode) \
175 V(StringCompareAndBranch) \ 175 V(StringCompareAndBranch) \
176 V(StringLength) \
177 V(SubI) \ 176 V(SubI) \
178 V(TaggedToI) \ 177 V(TaggedToI) \
179 V(ThisFunction) \ 178 V(ThisFunction) \
180 V(Throw) \ 179 V(Throw) \
181 V(ToFastProperties) \ 180 V(ToFastProperties) \
182 V(TransitionElementsKind) \ 181 V(TransitionElementsKind) \
183 V(TrapAllocationMemento) \ 182 V(TrapAllocationMemento) \
184 V(Typeof) \ 183 V(Typeof) \
185 V(TypeofIsAndBranch) \ 184 V(TypeofIsAndBranch) \
186 V(Uint32ToDouble) \ 185 V(Uint32ToDouble) \
(...skipping 2030 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 inputs_[0] = char_code; 2216 inputs_[0] = char_code;
2218 } 2217 }
2219 2218
2220 LOperand* char_code() { return inputs_[0]; } 2219 LOperand* char_code() { return inputs_[0]; }
2221 2220
2222 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") 2221 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code")
2223 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) 2222 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode)
2224 }; 2223 };
2225 2224
2226 2225
2227 class LStringLength: public LTemplateInstruction<1, 1, 0> {
2228 public:
2229 explicit LStringLength(LOperand* string) {
2230 inputs_[0] = string;
2231 }
2232
2233 LOperand* string() { return inputs_[0]; }
2234
2235 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
2236 DECLARE_HYDROGEN_ACCESSOR(StringLength)
2237 };
2238
2239
2240 class LCheckFunction: public LTemplateInstruction<0, 1, 0> { 2226 class LCheckFunction: public LTemplateInstruction<0, 1, 0> {
2241 public: 2227 public:
2242 explicit LCheckFunction(LOperand* value) { 2228 explicit LCheckFunction(LOperand* value) {
2243 inputs_[0] = value; 2229 inputs_[0] = value;
2244 } 2230 }
2245 2231
2246 LOperand* value() { return inputs_[0]; } 2232 LOperand* value() { return inputs_[0]; }
2247 2233
2248 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function") 2234 DECLARE_CONCRETE_INSTRUCTION(CheckFunction, "check-function")
2249 DECLARE_HYDROGEN_ACCESSOR(CheckFunction) 2235 DECLARE_HYDROGEN_ACCESSOR(CheckFunction)
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
2700 2686
2701 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2702 }; 2688 };
2703 2689
2704 #undef DECLARE_HYDROGEN_ACCESSOR 2690 #undef DECLARE_HYDROGEN_ACCESSOR
2705 #undef DECLARE_CONCRETE_INSTRUCTION 2691 #undef DECLARE_CONCRETE_INSTRUCTION
2706 2692
2707 } } // namespace v8::int 2693 } } // namespace v8::int
2708 2694
2709 #endif // V8_X64_LITHIUM_X64_H_ 2695 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698