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

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

Issue 6665026: Increase coverage of global loads in optimized code... (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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 V(IsSmiAndBranch) \ 113 V(IsSmiAndBranch) \
114 V(IsConstructCall) \ 114 V(IsConstructCall) \
115 V(IsConstructCallAndBranch) \ 115 V(IsConstructCallAndBranch) \
116 V(JSArrayLength) \ 116 V(JSArrayLength) \
117 V(Label) \ 117 V(Label) \
118 V(LazyBailout) \ 118 V(LazyBailout) \
119 V(LoadContextSlot) \ 119 V(LoadContextSlot) \
120 V(LoadElements) \ 120 V(LoadElements) \
121 V(LoadExternalArrayPointer) \ 121 V(LoadExternalArrayPointer) \
122 V(LoadFunctionPrototype) \ 122 V(LoadFunctionPrototype) \
123 V(LoadGlobal) \ 123 V(LoadGlobalCell) \
124 V(LoadGlobalGeneric) \
124 V(LoadKeyedFastElement) \ 125 V(LoadKeyedFastElement) \
125 V(LoadKeyedGeneric) \ 126 V(LoadKeyedGeneric) \
126 V(LoadNamedField) \ 127 V(LoadNamedField) \
127 V(LoadNamedGeneric) \ 128 V(LoadNamedGeneric) \
128 V(LoadPixelArrayElement) \ 129 V(LoadPixelArrayElement) \
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) \
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 } 1264 }
1264 1265
1265 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1266 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1266 1267
1267 LOperand* context() { return inputs_[0]; } 1268 LOperand* context() { return inputs_[0]; }
1268 LOperand* object() { return inputs_[1]; } 1269 LOperand* object() { return inputs_[1]; }
1269 LOperand* key() { return inputs_[2]; } 1270 LOperand* key() { return inputs_[2]; }
1270 }; 1271 };
1271 1272
1272 1273
1273 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1274 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
1274 public: 1275 public:
1275 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1276 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
1276 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1277 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
1278 };
1279
1280
1281 class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> {
1282 public:
1283 LLoadGlobalGeneric(LOperand* context) {
1284 inputs_[0] = context;
1285 }
1286
1287 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1288 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1289
1290 LOperand* context() { return inputs_[0]; }
1291 Handle<Object> name() const { return hydrogen()->name(); }
1292 bool for_typeof() const { return hydrogen()->for_typeof(); }
1277 }; 1293 };
1278 1294
1279 1295
1280 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { 1296 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> {
1281 public: 1297 public:
1282 explicit LStoreGlobal(LOperand* value) { 1298 explicit LStoreGlobal(LOperand* value) {
1283 inputs_[0] = value; 1299 inputs_[0] = value;
1284 } 1300 }
1285 1301
1286 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1302 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2166 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2151 }; 2167 };
2152 2168
2153 #undef DECLARE_HYDROGEN_ACCESSOR 2169 #undef DECLARE_HYDROGEN_ACCESSOR
2154 #undef DECLARE_INSTRUCTION 2170 #undef DECLARE_INSTRUCTION
2155 #undef DECLARE_CONCRETE_INSTRUCTION 2171 #undef DECLARE_CONCRETE_INSTRUCTION
2156 2172
2157 } } // namespace v8::internal 2173 } } // namespace v8::internal
2158 2174
2159 #endif // V8_IA32_LITHIUM_IA32_H_ 2175 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698