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

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

Issue 63863005: Add new HSeqStringGetChar instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix invalid use of movw(). Created 7 years, 1 month 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 V(NumberTagU) \ 147 V(NumberTagU) \
148 V(NumberUntagD) \ 148 V(NumberUntagD) \
149 V(OsrEntry) \ 149 V(OsrEntry) \
150 V(OuterContext) \ 150 V(OuterContext) \
151 V(Parameter) \ 151 V(Parameter) \
152 V(Power) \ 152 V(Power) \
153 V(PushArgument) \ 153 V(PushArgument) \
154 V(Random) \ 154 V(Random) \
155 V(RegExpLiteral) \ 155 V(RegExpLiteral) \
156 V(Return) \ 156 V(Return) \
157 V(SeqStringGetChar) \
157 V(SeqStringSetChar) \ 158 V(SeqStringSetChar) \
158 V(ShiftI) \ 159 V(ShiftI) \
159 V(SmiTag) \ 160 V(SmiTag) \
160 V(SmiUntag) \ 161 V(SmiUntag) \
161 V(StackCheck) \ 162 V(StackCheck) \
162 V(StoreCodeEntry) \ 163 V(StoreCodeEntry) \
163 V(StoreContextSlot) \ 164 V(StoreContextSlot) \
164 V(StoreGlobalCell) \ 165 V(StoreGlobalCell) \
165 V(StoreGlobalGeneric) \ 166 V(StoreGlobalGeneric) \
166 V(StoreKeyed) \ 167 V(StoreKeyed) \
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 Smi* index() const { return index_; } 1275 Smi* index() const { return index_; }
1275 1276
1276 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") 1277 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1277 DECLARE_HYDROGEN_ACCESSOR(DateField) 1278 DECLARE_HYDROGEN_ACCESSOR(DateField)
1278 1279
1279 private: 1280 private:
1280 Smi* index_; 1281 Smi* index_;
1281 }; 1282 };
1282 1283
1283 1284
1285 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1286 public:
1287 LSeqStringGetChar(LOperand* string, LOperand* index) {
1288 inputs_[0] = string;
1289 inputs_[1] = index;
1290 }
1291
1292 LOperand* string() const { return inputs_[0]; }
1293 LOperand* index() const { return inputs_[1]; }
1294
1295 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1296 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1297 };
1298
1299
1284 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1300 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1285 public: 1301 public:
1286 LSeqStringSetChar(LOperand* string, 1302 LSeqStringSetChar(LOperand* string,
1287 LOperand* index, 1303 LOperand* index,
1288 LOperand* value) { 1304 LOperand* value) {
1289 inputs_[0] = string; 1305 inputs_[0] = string;
1290 inputs_[1] = index; 1306 inputs_[1] = index;
1291 inputs_[2] = value; 1307 inputs_[2] = value;
1292 } 1308 }
1293 1309
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 2722
2707 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2723 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2708 }; 2724 };
2709 2725
2710 #undef DECLARE_HYDROGEN_ACCESSOR 2726 #undef DECLARE_HYDROGEN_ACCESSOR
2711 #undef DECLARE_CONCRETE_INSTRUCTION 2727 #undef DECLARE_CONCRETE_INSTRUCTION
2712 2728
2713 } } // namespace v8::int 2729 } } // namespace v8::int
2714 2730
2715 #endif // V8_X64_LITHIUM_X64_H_ 2731 #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