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

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

Issue 6691054: [Arguments] Merge (7442,7496] from bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: 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 | Annotate | Revision Log
« 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 V(IsObject) \ 111 V(IsObject) \
112 V(IsObjectAndBranch) \ 112 V(IsObjectAndBranch) \
113 V(IsSmi) \ 113 V(IsSmi) \
114 V(IsSmiAndBranch) \ 114 V(IsSmiAndBranch) \
115 V(JSArrayLength) \ 115 V(JSArrayLength) \
116 V(Label) \ 116 V(Label) \
117 V(LazyBailout) \ 117 V(LazyBailout) \
118 V(LoadContextSlot) \ 118 V(LoadContextSlot) \
119 V(LoadElements) \ 119 V(LoadElements) \
120 V(LoadExternalArrayPointer) \ 120 V(LoadExternalArrayPointer) \
121 V(LoadGlobal) \ 121 V(LoadGlobalCell) \
122 V(LoadGlobalGeneric) \
122 V(LoadKeyedFastElement) \ 123 V(LoadKeyedFastElement) \
123 V(LoadKeyedGeneric) \ 124 V(LoadKeyedGeneric) \
124 V(LoadKeyedSpecializedArrayElement) \ 125 V(LoadKeyedSpecializedArrayElement) \
125 V(LoadNamedField) \ 126 V(LoadNamedField) \
126 V(LoadNamedFieldPolymorphic) \ 127 V(LoadNamedFieldPolymorphic) \
127 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
128 V(LoadFunctionPrototype) \ 129 V(LoadFunctionPrototype) \
129 V(ModI) \ 130 V(ModI) \
130 V(MulI) \ 131 V(MulI) \
131 V(NumberTagD) \ 132 V(NumberTagD) \
132 V(NumberTagI) \ 133 V(NumberTagI) \
133 V(NumberUntagD) \ 134 V(NumberUntagD) \
134 V(ObjectLiteral) \ 135 V(ObjectLiteral) \
135 V(OsrEntry) \ 136 V(OsrEntry) \
136 V(OuterContext) \ 137 V(OuterContext) \
137 V(Parameter) \ 138 V(Parameter) \
138 V(Power) \ 139 V(Power) \
139 V(PushArgument) \ 140 V(PushArgument) \
140 V(RegExpLiteral) \ 141 V(RegExpLiteral) \
141 V(Return) \ 142 V(Return) \
142 V(ShiftI) \ 143 V(ShiftI) \
143 V(SmiTag) \ 144 V(SmiTag) \
144 V(SmiUntag) \ 145 V(SmiUntag) \
145 V(StackCheck) \ 146 V(StackCheck) \
146 V(StoreContextSlot) \ 147 V(StoreContextSlot) \
147 V(StoreGlobal) \ 148 V(StoreGlobalCell) \
149 V(StoreGlobalGeneric) \
148 V(StoreKeyedFastElement) \ 150 V(StoreKeyedFastElement) \
149 V(StoreKeyedGeneric) \ 151 V(StoreKeyedGeneric) \
150 V(StoreKeyedSpecializedArrayElement) \ 152 V(StoreKeyedSpecializedArrayElement) \
151 V(StoreNamedField) \ 153 V(StoreNamedField) \
152 V(StoreNamedGeneric) \ 154 V(StoreNamedGeneric) \
153 V(StringCharCodeAt) \ 155 V(StringCharCodeAt) \
154 V(StringCharFromCode) \ 156 V(StringCharFromCode) \
155 V(StringLength) \ 157 V(StringLength) \
156 V(SubI) \ 158 V(SubI) \
157 V(TaggedToI) \ 159 V(TaggedToI) \
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 inputs_[1] = key; 1240 inputs_[1] = key;
1239 } 1241 }
1240 1242
1241 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1243 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1242 1244
1243 LOperand* object() { return inputs_[0]; } 1245 LOperand* object() { return inputs_[0]; }
1244 LOperand* key() { return inputs_[1]; } 1246 LOperand* key() { return inputs_[1]; }
1245 }; 1247 };
1246 1248
1247 1249
1248 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1250 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
1249 public: 1251 public:
1250 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1252 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
1251 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1253 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
1252 }; 1254 };
1253 1255
1254 1256
1255 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { 1257 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> {
1256 public: 1258 public:
1257 explicit LStoreGlobal(LOperand* value, LOperand* temp) { 1259 explicit LLoadGlobalGeneric(LOperand* global_object) {
1260 inputs_[0] = global_object;
1261 }
1262
1263 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1264 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1265
1266 LOperand* global_object() { return inputs_[0]; }
1267 Handle<Object> name() const { return hydrogen()->name(); }
1268 bool for_typeof() const { return hydrogen()->for_typeof(); }
1269 };
1270
1271
1272 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> {
1273 public:
1274 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) {
1258 inputs_[0] = value; 1275 inputs_[0] = value;
1259 temps_[0] = temp; 1276 temps_[0] = temp;
1260 } 1277 }
1261 1278
1262 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1279 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1263 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1280 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1264 }; 1281 };
1265 1282
1266 1283
1284 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
1285 public:
1286 explicit LStoreGlobalGeneric(LOperand* global_object,
1287 LOperand* value) {
1288 inputs_[0] = global_object;
1289 inputs_[1] = value;
1290 }
1291
1292 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
1293 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
1294
1295 LOperand* global_object() { return InputAt(0); }
1296 Handle<Object> name() const { return hydrogen()->name(); }
1297 LOperand* value() { return InputAt(1); }
1298 };
1299
1300
1267 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1301 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1268 public: 1302 public:
1269 explicit LLoadContextSlot(LOperand* context) { 1303 explicit LLoadContextSlot(LOperand* context) {
1270 inputs_[0] = context; 1304 inputs_[0] = context;
1271 } 1305 }
1272 1306
1273 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1307 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1274 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1308 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1275 1309
1276 LOperand* context() { return InputAt(0); } 1310 LOperand* context() { return InputAt(0); }
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2119 }; 2153 };
2120 2154
2121 #undef DECLARE_HYDROGEN_ACCESSOR 2155 #undef DECLARE_HYDROGEN_ACCESSOR
2122 #undef DECLARE_INSTRUCTION 2156 #undef DECLARE_INSTRUCTION
2123 #undef DECLARE_CONCRETE_INSTRUCTION 2157 #undef DECLARE_CONCRETE_INSTRUCTION
2124 2158
2125 } } // namespace v8::int 2159 } } // namespace v8::int
2126 2160
2127 #endif // V8_X64_LITHIUM_X64_H_ 2161 #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