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

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

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: 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
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 V(JSArrayLength) \ 109 V(JSArrayLength) \
110 V(Label) \ 110 V(Label) \
111 V(LazyBailout) \ 111 V(LazyBailout) \
112 V(LoadContextSlot) \ 112 V(LoadContextSlot) \
113 V(LoadElements) \ 113 V(LoadElements) \
114 V(LoadExternalArrayPointer) \ 114 V(LoadExternalArrayPointer) \
115 V(LoadFunctionPrototype) \ 115 V(LoadFunctionPrototype) \
116 V(LoadGlobalCell) \ 116 V(LoadGlobalCell) \
117 V(LoadGlobalGeneric) \ 117 V(LoadGlobalGeneric) \
118 V(LoadKeyedFastElement) \ 118 V(LoadKeyedFastElement) \
119 V(LoadKeyedFastDoubleElement) \
119 V(LoadKeyedGeneric) \ 120 V(LoadKeyedGeneric) \
120 V(LoadKeyedSpecializedArrayElement) \ 121 V(LoadKeyedSpecializedArrayElement) \
121 V(LoadNamedField) \ 122 V(LoadNamedField) \
122 V(LoadNamedFieldPolymorphic) \ 123 V(LoadNamedFieldPolymorphic) \
123 V(LoadNamedGeneric) \ 124 V(LoadNamedGeneric) \
124 V(ModI) \ 125 V(ModI) \
125 V(MulI) \ 126 V(MulI) \
126 V(NumberTagD) \ 127 V(NumberTagD) \
127 V(NumberTagI) \ 128 V(NumberTagI) \
128 V(NumberUntagD) \ 129 V(NumberUntagD) \
129 V(ObjectLiteral) \ 130 V(ObjectLiteral) \
130 V(OsrEntry) \ 131 V(OsrEntry) \
131 V(OuterContext) \ 132 V(OuterContext) \
132 V(Parameter) \ 133 V(Parameter) \
133 V(Power) \ 134 V(Power) \
134 V(PushArgument) \ 135 V(PushArgument) \
135 V(RegExpLiteral) \ 136 V(RegExpLiteral) \
136 V(Return) \ 137 V(Return) \
137 V(ShiftI) \ 138 V(ShiftI) \
138 V(SmiTag) \ 139 V(SmiTag) \
139 V(SmiUntag) \ 140 V(SmiUntag) \
140 V(StackCheck) \ 141 V(StackCheck) \
141 V(StoreContextSlot) \ 142 V(StoreContextSlot) \
142 V(StoreGlobalCell) \ 143 V(StoreGlobalCell) \
143 V(StoreGlobalGeneric) \ 144 V(StoreGlobalGeneric) \
145 V(StoreKeyedFastDoubleElement) \
144 V(StoreKeyedFastElement) \ 146 V(StoreKeyedFastElement) \
145 V(StoreKeyedGeneric) \ 147 V(StoreKeyedGeneric) \
146 V(StoreKeyedSpecializedArrayElement) \ 148 V(StoreKeyedSpecializedArrayElement) \
147 V(StoreNamedField) \ 149 V(StoreNamedField) \
148 V(StoreNamedGeneric) \ 150 V(StoreNamedGeneric) \
149 V(StringAdd) \ 151 V(StringAdd) \
150 V(StringCharCodeAt) \ 152 V(StringCharCodeAt) \
151 V(StringCharFromCode) \ 153 V(StringCharFromCode) \
152 V(StringLength) \ 154 V(StringLength) \
153 V(SubI) \ 155 V(SubI) \
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 869
868 class LConstantT: public LTemplateInstruction<1, 0, 0> { 870 class LConstantT: public LTemplateInstruction<1, 0, 0> {
869 public: 871 public:
870 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") 872 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t")
871 DECLARE_HYDROGEN_ACCESSOR(Constant) 873 DECLARE_HYDROGEN_ACCESSOR(Constant)
872 874
873 Handle<Object> value() const { return hydrogen()->handle(); } 875 Handle<Object> value() const { return hydrogen()->handle(); }
874 }; 876 };
875 877
876 878
877 class LBranch: public LControlInstruction<1, 0> { 879 class LBranch: public LControlInstruction<1, 1> {
878 public: 880 public:
879 explicit LBranch(LOperand* value) { 881 explicit LBranch(LOperand* value, LOperand* temp) {
880 inputs_[0] = value; 882 inputs_[0] = value;
883 temps_[0] = temp;
881 } 884 }
882 885
883 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch") 886 DECLARE_CONCRETE_INSTRUCTION(Branch, "branch")
884 DECLARE_HYDROGEN_ACCESSOR(Branch) 887 DECLARE_HYDROGEN_ACCESSOR(Branch)
885 888
886 virtual void PrintDataTo(StringStream* stream); 889 virtual void PrintDataTo(StringStream* stream);
887 }; 890 };
888 891
889 892
890 class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> { 893 class LCmpMapAndBranch: public LTemplateInstruction<0, 1, 0> {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 } 1157 }
1155 1158
1156 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") 1159 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element")
1157 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) 1160 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement)
1158 1161
1159 LOperand* elements() { return inputs_[0]; } 1162 LOperand* elements() { return inputs_[0]; }
1160 LOperand* key() { return inputs_[1]; } 1163 LOperand* key() { return inputs_[1]; }
1161 }; 1164 };
1162 1165
1163 1166
1167 class LLoadKeyedFastDoubleElement: public LTemplateInstruction<1, 2, 0> {
1168 public:
1169 LLoadKeyedFastDoubleElement(LOperand* elements,
1170 LOperand* key) {
1171 inputs_[0] = elements;
1172 inputs_[1] = key;
1173 }
1174
1175 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastDoubleElement,
1176 "load-keyed-fast-double-element")
1177 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastDoubleElement)
1178
1179 LOperand* elements() { return inputs_[0]; }
1180 LOperand* key() { return inputs_[1]; }
1181 };
1182
1183
1164 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { 1184 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> {
1165 public: 1185 public:
1166 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, 1186 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer,
1167 LOperand* key) { 1187 LOperand* key) {
1168 inputs_[0] = external_pointer; 1188 inputs_[0] = external_pointer;
1169 inputs_[1] = key; 1189 inputs_[1] = key;
1170 } 1190 }
1171 1191
1172 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, 1192 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement,
1173 "load-keyed-specialized-array-element") 1193 "load-keyed-specialized-array-element")
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) 1666 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement)
1647 1667
1648 virtual void PrintDataTo(StringStream* stream); 1668 virtual void PrintDataTo(StringStream* stream);
1649 1669
1650 LOperand* object() { return inputs_[0]; } 1670 LOperand* object() { return inputs_[0]; }
1651 LOperand* key() { return inputs_[1]; } 1671 LOperand* key() { return inputs_[1]; }
1652 LOperand* value() { return inputs_[2]; } 1672 LOperand* value() { return inputs_[2]; }
1653 }; 1673 };
1654 1674
1655 1675
1676 class LStoreKeyedFastDoubleElement: public LTemplateInstruction<0, 3, 0> {
1677 public:
1678 LStoreKeyedFastDoubleElement(LOperand* elements,
1679 LOperand* key,
1680 LOperand* val) {
1681 inputs_[0] = elements;
1682 inputs_[1] = key;
1683 inputs_[2] = val;
1684 }
1685
1686 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFastDoubleElement,
1687 "store-keyed-fast-double-element")
1688 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastDoubleElement)
1689
1690 virtual void PrintDataTo(StringStream* stream);
1691
1692 LOperand* elements() { return inputs_[0]; }
1693 LOperand* key() { return inputs_[1]; }
1694 LOperand* value() { return inputs_[2]; }
1695 };
1696
1697
1656 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { 1698 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> {
1657 public: 1699 public:
1658 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, 1700 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer,
1659 LOperand* key, 1701 LOperand* key,
1660 LOperand* val) { 1702 LOperand* val) {
1661 inputs_[0] = external_pointer; 1703 inputs_[0] = external_pointer;
1662 inputs_[1] = key; 1704 inputs_[1] = key;
1663 inputs_[2] = val; 1705 inputs_[2] = val;
1664 } 1706 }
1665 1707
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
2253 2295
2254 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2296 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2255 }; 2297 };
2256 2298
2257 #undef DECLARE_HYDROGEN_ACCESSOR 2299 #undef DECLARE_HYDROGEN_ACCESSOR
2258 #undef DECLARE_CONCRETE_INSTRUCTION 2300 #undef DECLARE_CONCRETE_INSTRUCTION
2259 2301
2260 } } // namespace v8::internal 2302 } } // namespace v8::internal
2261 2303
2262 #endif // V8_IA32_LITHIUM_IA32_H_ 2304 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698