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

Side by Side Diff: src/x64/lithium-x64.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/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(IsObjectAndBranch) \ 111 V(IsObjectAndBranch) \
112 V(IsSmi) \ 112 V(IsSmi) \
113 V(IsSmiAndBranch) \ 113 V(IsSmiAndBranch) \
114 V(JSArrayLength) \ 114 V(JSArrayLength) \
115 V(Label) \ 115 V(Label) \
116 V(LazyBailout) \ 116 V(LazyBailout) \
117 V(LoadContextSlot) \ 117 V(LoadContextSlot) \
118 V(LoadElements) \ 118 V(LoadElements) \
119 V(LoadExternalArrayPointer) \ 119 V(LoadExternalArrayPointer) \
120 V(LoadGlobal) \ 120 V(LoadGlobal) \
121 V(LoadGlobalGeneric) \
121 V(LoadKeyedFastElement) \ 122 V(LoadKeyedFastElement) \
122 V(LoadKeyedGeneric) \ 123 V(LoadKeyedGeneric) \
123 V(LoadNamedField) \ 124 V(LoadNamedField) \
124 V(LoadNamedGeneric) \ 125 V(LoadNamedGeneric) \
125 V(LoadFunctionPrototype) \ 126 V(LoadFunctionPrototype) \
126 V(LoadPixelArrayElement) \ 127 V(LoadPixelArrayElement) \
127 V(ModI) \ 128 V(ModI) \
128 V(MulI) \ 129 V(MulI) \
129 V(NumberTagD) \ 130 V(NumberTagD) \
130 V(NumberTagI) \ 131 V(NumberTagI) \
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 }; 1225 };
1225 1226
1226 1227
1227 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1228 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
1228 public: 1229 public:
1229 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1230 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
1230 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1231 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
1231 }; 1232 };
1232 1233
1233 1234
1235 class LLoadGlobalGeneric: public LTemplateInstruction<1, 0, 0> {
1236 public:
1237 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
1238 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
1239 };
1240
1241
1234 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { 1242 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> {
1235 public: 1243 public:
1236 explicit LStoreGlobal(LOperand* value, LOperand* temp) { 1244 explicit LStoreGlobal(LOperand* value, LOperand* temp) {
1237 inputs_[0] = value; 1245 inputs_[0] = value;
1238 temps_[0] = temp; 1246 temps_[0] = temp;
1239 } 1247 }
1240 1248
1241 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1249 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
1242 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1250 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal)
1243 }; 1251 };
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2071 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2064 }; 2072 };
2065 2073
2066 #undef DECLARE_HYDROGEN_ACCESSOR 2074 #undef DECLARE_HYDROGEN_ACCESSOR
2067 #undef DECLARE_INSTRUCTION 2075 #undef DECLARE_INSTRUCTION
2068 #undef DECLARE_CONCRETE_INSTRUCTION 2076 #undef DECLARE_CONCRETE_INSTRUCTION
2069 2077
2070 } } // namespace v8::int 2078 } } // namespace v8::int
2071 2079
2072 #endif // V8_X64_LITHIUM_X64_H_ 2080 #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