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

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

Issue 5550003: Add optimized compiler support for generic global loads.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: ported to x64 and arm 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(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(LoadGlobal) \
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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 }; 1270 };
1270 1271
1271 1272
1272 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1273 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
1273 public: 1274 public:
1274 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1275 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
1275 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1276 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
1276 }; 1277 };
1277 1278
1278 1279
1280 class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> {
1281 public:
1282 LLoadGlobalGeneric(LOperand* context, LOperand* global_object) {
1283 inputs_[0] = context;
1284 inputs_[1] = global_object;
1285 }
1286
1287 LOperand* context() { return inputs_[0]; }
1288 LOperand* global_object() { return inputs_[1]; }
1289
1290 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1291 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1292 };
1293
1294
1279 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { 1295 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> {
1280 public: 1296 public:
1281 explicit LStoreGlobal(LOperand* value) { 1297 explicit LStoreGlobal(LOperand* value) {
1282 inputs_[0] = value; 1298 inputs_[0] = value;
1283 } 1299 }
1284 1300
1285 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1301 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
1286 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1302 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal)
1287 }; 1303 };
1288 1304
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2137 }; 2153 };
2138 2154
2139 #undef DECLARE_HYDROGEN_ACCESSOR 2155 #undef DECLARE_HYDROGEN_ACCESSOR
2140 #undef DECLARE_INSTRUCTION 2156 #undef DECLARE_INSTRUCTION
2141 #undef DECLARE_CONCRETE_INSTRUCTION 2157 #undef DECLARE_CONCRETE_INSTRUCTION
2142 2158
2143 } } // namespace v8::internal 2159 } } // namespace v8::internal
2144 2160
2145 #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