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

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

Issue 8857001: [hydrogen] don't bailout assignments to consts (Closed) Base URL: gh:v8/v8@master
Patch Set: [arm] fixed illegal access errorwq 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
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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 public: 1267 public:
1268 explicit LLoadContextSlot(LOperand* context) { 1268 explicit LLoadContextSlot(LOperand* context) {
1269 inputs_[0] = context; 1269 inputs_[0] = context;
1270 } 1270 }
1271 1271
1272 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1272 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1273 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1273 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1274 1274
1275 LOperand* context() { return InputAt(0); } 1275 LOperand* context() { return InputAt(0); }
1276 int slot_index() { return hydrogen()->slot_index(); } 1276 int slot_index() { return hydrogen()->slot_index(); }
1277 bool RequiresHoleCheck() { return hydrogen()->RequiresHoleCheck(); }
1277 1278
1278 virtual void PrintDataTo(StringStream* stream); 1279 virtual void PrintDataTo(StringStream* stream);
1279 }; 1280 };
1280 1281
1281 1282
1282 class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> { 1283 class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> {
1283 public: 1284 public:
1284 LStoreContextSlot(LOperand* context, LOperand* value) { 1285 LStoreContextSlot(LOperand* context, LOperand* value) {
1285 inputs_[0] = context; 1286 inputs_[0] = context;
1286 inputs_[1] = value; 1287 inputs_[1] = value;
1287 } 1288 }
1288 1289
1289 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") 1290 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
1290 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) 1291 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
1291 1292
1292 LOperand* context() { return InputAt(0); } 1293 LOperand* context() { return InputAt(0); }
1293 LOperand* value() { return InputAt(1); } 1294 LOperand* value() { return InputAt(1); }
1294 int slot_index() { return hydrogen()->slot_index(); } 1295 int slot_index() { return hydrogen()->slot_index(); }
1296 bool RequiresHoleCheck() { return hydrogen()->RequiresHoleCheck(); }
1295 1297
1296 virtual void PrintDataTo(StringStream* stream); 1298 virtual void PrintDataTo(StringStream* stream);
1297 }; 1299 };
1298 1300
1299 1301
1300 class LPushArgument: public LTemplateInstruction<0, 1, 0> { 1302 class LPushArgument: public LTemplateInstruction<0, 1, 0> {
1301 public: 1303 public:
1302 explicit LPushArgument(LOperand* value) { 1304 explicit LPushArgument(LOperand* value) {
1303 inputs_[0] = value; 1305 inputs_[0] = value;
1304 } 1306 }
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 2258
2257 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2259 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2258 }; 2260 };
2259 2261
2260 #undef DECLARE_HYDROGEN_ACCESSOR 2262 #undef DECLARE_HYDROGEN_ACCESSOR
2261 #undef DECLARE_CONCRETE_INSTRUCTION 2263 #undef DECLARE_CONCRETE_INSTRUCTION
2262 2264
2263 } } // namespace v8::internal 2265 } } // namespace v8::internal
2264 2266
2265 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2267 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698