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

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

Issue 57383004: Improve implementation of HSeqStringSetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Increase GVNFlags to 64bit. Add StringChars flag. 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 | « no previous file | src/arm/lithium-arm.cc » ('j') | src/ia32/lithium-ia32.cc » ('J')
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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") 1355 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field")
1356 DECLARE_HYDROGEN_ACCESSOR(DateField) 1356 DECLARE_HYDROGEN_ACCESSOR(DateField)
1357 1357
1358 private: 1358 private:
1359 Smi* index_; 1359 Smi* index_;
1360 }; 1360 };
1361 1361
1362 1362
1363 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1363 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> {
1364 public: 1364 public:
1365 LSeqStringSetChar(String::Encoding encoding, 1365 LSeqStringSetChar(LOperand* string,
1366 LOperand* string,
1367 LOperand* index, 1366 LOperand* index,
1368 LOperand* value) : encoding_(encoding) { 1367 LOperand* value) {
1369 inputs_[0] = string; 1368 inputs_[0] = string;
1370 inputs_[1] = index; 1369 inputs_[1] = index;
1371 inputs_[2] = value; 1370 inputs_[2] = value;
1372 } 1371 }
1373 1372
1374 String::Encoding encoding() { return encoding_; }
1375 LOperand* string() { return inputs_[0]; } 1373 LOperand* string() { return inputs_[0]; }
1376 LOperand* index() { return inputs_[1]; } 1374 LOperand* index() { return inputs_[1]; }
1377 LOperand* value() { return inputs_[2]; } 1375 LOperand* value() { return inputs_[2]; }
1378 1376
1379 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1377 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1380 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1378 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1381
1382 private:
1383 String::Encoding encoding_;
1384 }; 1379 };
1385 1380
1386 1381
1387 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1382 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1388 public: 1383 public:
1389 LThrow(LOperand* context, LOperand* value) { 1384 LThrow(LOperand* context, LOperand* value) {
1390 inputs_[0] = context; 1385 inputs_[0] = context;
1391 inputs_[1] = value; 1386 inputs_[1] = value;
1392 } 1387 }
1393 1388
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2900 2895
2901 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2896 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2902 }; 2897 };
2903 2898
2904 #undef DECLARE_HYDROGEN_ACCESSOR 2899 #undef DECLARE_HYDROGEN_ACCESSOR
2905 #undef DECLARE_CONCRETE_INSTRUCTION 2900 #undef DECLARE_CONCRETE_INSTRUCTION
2906 2901
2907 } } // namespace v8::internal 2902 } } // namespace v8::internal
2908 2903
2909 #endif // V8_ARM_LITHIUM_ARM_H_ 2904 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/ia32/lithium-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698