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

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

Issue 6667077: Revert revisions 7215 and 7212. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V(IsSmiAndBranch) \ 114 V(IsSmiAndBranch) \
115 V(IsConstructCall) \ 115 V(IsConstructCall) \
116 V(IsConstructCallAndBranch) \ 116 V(IsConstructCallAndBranch) \
117 V(JSArrayLength) \ 117 V(JSArrayLength) \
118 V(Label) \ 118 V(Label) \
119 V(LazyBailout) \ 119 V(LazyBailout) \
120 V(LoadContextSlot) \ 120 V(LoadContextSlot) \
121 V(LoadElements) \ 121 V(LoadElements) \
122 V(LoadExternalArrayPointer) \ 122 V(LoadExternalArrayPointer) \
123 V(LoadFunctionPrototype) \ 123 V(LoadFunctionPrototype) \
124 V(LoadGlobalCell) \ 124 V(LoadGlobal) \
125 V(LoadGlobalGeneric) \
126 V(LoadKeyedFastElement) \ 125 V(LoadKeyedFastElement) \
127 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
128 V(LoadNamedField) \ 127 V(LoadNamedField) \
129 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
130 V(LoadPixelArrayElement) \ 129 V(LoadPixelArrayElement) \
131 V(ModI) \ 130 V(ModI) \
132 V(MulI) \ 131 V(MulI) \
133 V(NumberTagD) \ 132 V(NumberTagD) \
134 V(NumberTagI) \ 133 V(NumberTagI) \
135 V(NumberUntagD) \ 134 V(NumberUntagD) \
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 } 1264 }
1266 1265
1267 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1266 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1268 1267
1269 LOperand* context() { return inputs_[0]; } 1268 LOperand* context() { return inputs_[0]; }
1270 LOperand* object() { return inputs_[1]; } 1269 LOperand* object() { return inputs_[1]; }
1271 LOperand* key() { return inputs_[2]; } 1270 LOperand* key() { return inputs_[2]; }
1272 }; 1271 };
1273 1272
1274 1273
1275 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { 1274 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
1276 public: 1275 public:
1277 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") 1276 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
1278 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) 1277 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
1279 };
1280
1281
1282 class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
1283 public:
1284 LLoadGlobalGeneric(LOperand* context, LOperand* global_object) {
1285 inputs_[0] = context;
1286 inputs_[1] = global_object;
1287 }
1288
1289 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1290 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1291
1292 LOperand* context() { return inputs_[0]; }
1293 LOperand* global_object() { return inputs_[1]; }
1294 Handle<Object> name() const { return hydrogen()->name(); }
1295 bool for_typeof() const { return hydrogen()->for_typeof(); }
1296 }; 1278 };
1297 1279
1298 1280
1299 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { 1281 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> {
1300 public: 1282 public:
1301 explicit LStoreGlobal(LOperand* value) { 1283 explicit LStoreGlobal(LOperand* value) {
1302 inputs_[0] = value; 1284 inputs_[0] = value;
1303 } 1285 }
1304 1286
1305 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1287 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2171 }; 2153 };
2172 2154
2173 #undef DECLARE_HYDROGEN_ACCESSOR 2155 #undef DECLARE_HYDROGEN_ACCESSOR
2174 #undef DECLARE_INSTRUCTION 2156 #undef DECLARE_INSTRUCTION
2175 #undef DECLARE_CONCRETE_INSTRUCTION 2157 #undef DECLARE_CONCRETE_INSTRUCTION
2176 2158
2177 } } // namespace v8::internal 2159 } } // namespace v8::internal
2178 2160
2179 #endif // V8_IA32_LITHIUM_IA32_H_ 2161 #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