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

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

Issue 153993011: A64: Port LSeqStringGetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: UseRegister Created 6 years, 10 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/a64/lithium-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 V(NumberTagU) \ 154 V(NumberTagU) \
155 V(NumberUntagD) \ 155 V(NumberUntagD) \
156 V(OsrEntry) \ 156 V(OsrEntry) \
157 V(OuterContext) \ 157 V(OuterContext) \
158 V(Parameter) \ 158 V(Parameter) \
159 V(Power) \ 159 V(Power) \
160 V(PushArgument) \ 160 V(PushArgument) \
161 V(Random) \ 161 V(Random) \
162 V(RegExpLiteral) \ 162 V(RegExpLiteral) \
163 V(Return) \ 163 V(Return) \
164 V(SeqStringGetChar) \
164 V(SeqStringSetChar) \ 165 V(SeqStringSetChar) \
165 V(ShiftI) \ 166 V(ShiftI) \
166 V(ShiftS) \ 167 V(ShiftS) \
167 V(SmiTag) \ 168 V(SmiTag) \
168 V(SmiUntag) \ 169 V(SmiUntag) \
169 V(StackCheck) \ 170 V(StackCheck) \
170 V(StoreCodeEntry) \ 171 V(StoreCodeEntry) \
171 V(StoreContextSlot) \ 172 V(StoreContextSlot) \
172 V(StoreGlobalCell) \ 173 V(StoreGlobalCell) \
173 V(StoreGlobalGeneric) \ 174 V(StoreGlobalGeneric) \
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 } 2135 }
2135 LConstantOperand* constant_parameter_count() { 2136 LConstantOperand* constant_parameter_count() {
2136 ASSERT(has_constant_parameter_count()); 2137 ASSERT(has_constant_parameter_count());
2137 return LConstantOperand::cast(parameter_count()); 2138 return LConstantOperand::cast(parameter_count());
2138 } 2139 }
2139 2140
2140 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 2141 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
2141 }; 2142 };
2142 2143
2143 2144
2145 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 1> {
2146 public:
2147 LSeqStringGetChar(LOperand* string,
2148 LOperand* index,
2149 LOperand* temp) {
2150 inputs_[0] = string;
2151 inputs_[1] = index;
2152 temps_[0] = temp;
2153 }
2154
2155 LOperand* string() { return inputs_[0]; }
2156 LOperand* index() { return inputs_[1]; }
2157 LOperand* temp() { return temps_[0]; }
2158
2159 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
2160 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
2161 };
2162
2163
2144 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 1> { 2164 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 1> {
2145 public: 2165 public:
2146 LSeqStringSetChar(String::Encoding encoding, 2166 LSeqStringSetChar(String::Encoding encoding,
2147 LOperand* string, 2167 LOperand* string,
2148 LOperand* index, 2168 LOperand* index,
2149 LOperand* value, 2169 LOperand* value,
2150 LOperand* temp) : encoding_(encoding) { 2170 LOperand* temp) : encoding_(encoding) {
2151 inputs_[0] = string; 2171 inputs_[0] = string;
2152 inputs_[1] = index; 2172 inputs_[1] = index;
2153 inputs_[2] = value; 2173 inputs_[2] = value;
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
2989 3009
2990 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3010 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2991 }; 3011 };
2992 3012
2993 #undef DECLARE_HYDROGEN_ACCESSOR 3013 #undef DECLARE_HYDROGEN_ACCESSOR
2994 #undef DECLARE_CONCRETE_INSTRUCTION 3014 #undef DECLARE_CONCRETE_INSTRUCTION
2995 3015
2996 } } // namespace v8::internal 3016 } } // namespace v8::internal
2997 3017
2998 #endif // V8_A64_LITHIUM_A64_H_ 3018 #endif // V8_A64_LITHIUM_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698