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

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

Issue 65483002: MIPS: Add new HSeqStringGetChar instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 V(NumberTagU) \ 148 V(NumberTagU) \
149 V(NumberUntagD) \ 149 V(NumberUntagD) \
150 V(OsrEntry) \ 150 V(OsrEntry) \
151 V(OuterContext) \ 151 V(OuterContext) \
152 V(Parameter) \ 152 V(Parameter) \
153 V(Power) \ 153 V(Power) \
154 V(PushArgument) \ 154 V(PushArgument) \
155 V(Random) \ 155 V(Random) \
156 V(RegExpLiteral) \ 156 V(RegExpLiteral) \
157 V(Return) \ 157 V(Return) \
158 V(SeqStringGetChar) \
158 V(SeqStringSetChar) \ 159 V(SeqStringSetChar) \
159 V(ShiftI) \ 160 V(ShiftI) \
160 V(SmiTag) \ 161 V(SmiTag) \
161 V(SmiUntag) \ 162 V(SmiUntag) \
162 V(StackCheck) \ 163 V(StackCheck) \
163 V(StoreCodeEntry) \ 164 V(StoreCodeEntry) \
164 V(StoreContextSlot) \ 165 V(StoreContextSlot) \
165 V(StoreGlobalCell) \ 166 V(StoreGlobalCell) \
166 V(StoreGlobalGeneric) \ 167 V(StoreGlobalGeneric) \
167 V(StoreKeyed) \ 168 V(StoreKeyed) \
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 Smi* index() const { return index_; } 1334 Smi* index() const { return index_; }
1334 1335
1335 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") 1336 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1336 DECLARE_HYDROGEN_ACCESSOR(DateField) 1337 DECLARE_HYDROGEN_ACCESSOR(DateField)
1337 1338
1338 private: 1339 private:
1339 Smi* index_; 1340 Smi* index_;
1340 }; 1341 };
1341 1342
1342 1343
1344 class LSeqStringGetChar V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1345 public:
1346 LSeqStringGetChar(LOperand* string, LOperand* index) {
1347 inputs_[0] = string;
1348 inputs_[1] = index;
1349 }
1350
1351 LOperand* string() const { return inputs_[0]; }
1352 LOperand* index() const { return inputs_[1]; }
1353
1354 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1355 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1356 };
1357
1358
1343 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1359 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1344 public: 1360 public:
1345 LSeqStringSetChar(LOperand* string, 1361 LSeqStringSetChar(LOperand* string,
1346 LOperand* index, 1362 LOperand* index,
1347 LOperand* value) { 1363 LOperand* value) {
1348 inputs_[0] = string; 1364 inputs_[0] = string;
1349 inputs_[1] = index; 1365 inputs_[1] = index;
1350 inputs_[2] = value; 1366 inputs_[2] = value;
1351 } 1367 }
1352 1368
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 2884
2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2885 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2870 }; 2886 };
2871 2887
2872 #undef DECLARE_HYDROGEN_ACCESSOR 2888 #undef DECLARE_HYDROGEN_ACCESSOR
2873 #undef DECLARE_CONCRETE_INSTRUCTION 2889 #undef DECLARE_CONCRETE_INSTRUCTION
2874 2890
2875 } } // namespace v8::internal 2891 } } // namespace v8::internal
2876 2892
2877 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2893 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698