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

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

Issue 6852015: Support string add in crankshaft: (Closed)
Patch Set: Review fixes and ports Created 9 years, 8 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
« 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 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 V(SmiUntag) \ 145 V(SmiUntag) \
146 V(StackCheck) \ 146 V(StackCheck) \
147 V(StoreContextSlot) \ 147 V(StoreContextSlot) \
148 V(StoreGlobalCell) \ 148 V(StoreGlobalCell) \
149 V(StoreGlobalGeneric) \ 149 V(StoreGlobalGeneric) \
150 V(StoreKeyedFastElement) \ 150 V(StoreKeyedFastElement) \
151 V(StoreKeyedGeneric) \ 151 V(StoreKeyedGeneric) \
152 V(StoreKeyedSpecializedArrayElement) \ 152 V(StoreKeyedSpecializedArrayElement) \
153 V(StoreNamedField) \ 153 V(StoreNamedField) \
154 V(StoreNamedGeneric) \ 154 V(StoreNamedGeneric) \
155 V(StringAdd) \
155 V(StringCharCodeAt) \ 156 V(StringCharCodeAt) \
156 V(StringCharFromCode) \ 157 V(StringCharFromCode) \
157 V(StringLength) \ 158 V(StringLength) \
158 V(SubI) \ 159 V(SubI) \
159 V(TaggedToI) \ 160 V(TaggedToI) \
160 V(ToFastProperties) \ 161 V(ToFastProperties) \
161 V(Throw) \ 162 V(Throw) \
162 V(Typeof) \ 163 V(Typeof) \
163 V(TypeofIs) \ 164 V(TypeofIs) \
164 V(TypeofIsAndBranch) \ 165 V(TypeofIsAndBranch) \
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 1678
1678 virtual void PrintDataTo(StringStream* stream); 1679 virtual void PrintDataTo(StringStream* stream);
1679 1680
1680 LOperand* object() { return inputs_[0]; } 1681 LOperand* object() { return inputs_[0]; }
1681 LOperand* key() { return inputs_[1]; } 1682 LOperand* key() { return inputs_[1]; }
1682 LOperand* value() { return inputs_[2]; } 1683 LOperand* value() { return inputs_[2]; }
1683 bool strict_mode() { return hydrogen()->strict_mode(); } 1684 bool strict_mode() { return hydrogen()->strict_mode(); }
1684 }; 1685 };
1685 1686
1686 1687
1688 class LStringAdd: public LTemplateInstruction<1, 2, 0> {
1689 public:
1690 LStringAdd(LOperand* left, LOperand* right) {
1691 inputs_[0] = left;
1692 inputs_[1] = right;
1693 }
1694
1695 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add")
1696 DECLARE_HYDROGEN_ACCESSOR(StringAdd)
1697
1698 LOperand* left() { return inputs_[0]; }
1699 LOperand* right() { return inputs_[1]; }
1700 };
1701
1702
1687 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { 1703 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> {
1688 public: 1704 public:
1689 LStringCharCodeAt(LOperand* string, LOperand* index) { 1705 LStringCharCodeAt(LOperand* string, LOperand* index) {
1690 inputs_[0] = string; 1706 inputs_[0] = string;
1691 inputs_[1] = index; 1707 inputs_[1] = index;
1692 } 1708 }
1693 1709
1694 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") 1710 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
1695 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) 1711 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
1696 1712
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2172 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2157 }; 2173 };
2158 2174
2159 #undef DECLARE_HYDROGEN_ACCESSOR 2175 #undef DECLARE_HYDROGEN_ACCESSOR
2160 #undef DECLARE_INSTRUCTION 2176 #undef DECLARE_INSTRUCTION
2161 #undef DECLARE_CONCRETE_INSTRUCTION 2177 #undef DECLARE_CONCRETE_INSTRUCTION
2162 2178
2163 } } // namespace v8::int 2179 } } // namespace v8::int
2164 2180
2165 #endif // V8_X64_LITHIUM_X64_H_ 2181 #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