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

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

Issue 7477045: Tentative implementation of string slices (hidden under the flag --string-slices). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few changes after short review by antonm. Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 1688
1689 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") 1689 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
1690 DECLARE_HYDROGEN_ACCESSOR(StringAdd) 1690 DECLARE_HYDROGEN_ACCESSOR(StringAdd)
1691 1691
1692 LOperand* left() { return inputs_[0]; } 1692 LOperand* left() { return inputs_[0]; }
1693 LOperand* right() { return inputs_[1]; } 1693 LOperand* right() { return inputs_[1]; }
1694 }; 1694 };
1695 1695
1696 1696
1697 1697
1698 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { 1698 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 1> {
1699 public: 1699 public:
1700 LStringCharCodeAt(LOperand* string, LOperand* index) { 1700 LStringCharCodeAt(LOperand* string, LOperand* index, LOperand* temp) {
1701 inputs_[0] = string; 1701 inputs_[0] = string;
1702 inputs_[1] = index; 1702 inputs_[1] = index;
1703 temps_[0] = temp;
1703 } 1704 }
1704 1705
1705 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") 1706 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1706 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) 1707 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1707 1708
1708 LOperand* string() { return inputs_[0]; } 1709 LOperand* string() { return inputs_[0]; }
1709 LOperand* index() { return inputs_[1]; } 1710 LOperand* index() { return inputs_[1]; }
1710 }; 1711 };
1711 1712
1712 1713
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 2198
2198 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2199 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2199 }; 2200 };
2200 2201
2201 #undef DECLARE_HYDROGEN_ACCESSOR 2202 #undef DECLARE_HYDROGEN_ACCESSOR
2202 #undef DECLARE_CONCRETE_INSTRUCTION 2203 #undef DECLARE_CONCRETE_INSTRUCTION
2203 2204
2204 } } // namespace v8::internal 2205 } } // namespace v8::internal
2205 2206
2206 #endif // V8_ARM_LITHIUM_ARM_H_ 2207 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698