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

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

Issue 9004017: MIPS: Clean up handling of global cell stores in the optimizing compiler. (Closed)
Patch Set: Created 9 years 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 1235
1236 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> { 1236 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> {
1237 public: 1237 public:
1238 LStoreGlobalCell(LOperand* value, LOperand* temp) { 1238 LStoreGlobalCell(LOperand* value, LOperand* temp) {
1239 inputs_[0] = value; 1239 inputs_[0] = value;
1240 temps_[0] = temp; 1240 temps_[0] = temp;
1241 } 1241 }
1242 1242
1243 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") 1243 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
1244 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) 1244 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
1245
1246 LOperand* value() { return inputs_[0]; }
1245 }; 1247 };
1246 1248
1247 1249
1248 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> { 1250 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
1249 public: 1251 public:
1250 explicit LStoreGlobalGeneric(LOperand* global_object, 1252 explicit LStoreGlobalGeneric(LOperand* global_object,
1251 LOperand* value) { 1253 LOperand* value) {
1252 inputs_[0] = global_object; 1254 inputs_[0] = global_object;
1253 inputs_[1] = value; 1255 inputs_[1] = value;
1254 } 1256 }
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 2260
2259 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2261 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2260 }; 2262 };
2261 2263
2262 #undef DECLARE_HYDROGEN_ACCESSOR 2264 #undef DECLARE_HYDROGEN_ACCESSOR
2263 #undef DECLARE_CONCRETE_INSTRUCTION 2265 #undef DECLARE_CONCRETE_INSTRUCTION
2264 2266
2265 } } // namespace v8::internal 2267 } } // namespace v8::internal
2266 2268
2267 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2269 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698