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

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

Issue 6627048: X64 Crankshaft: Revert r7071 and fix DoStoreContextSlot in a different way. (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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1251 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
1252 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) 1252 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot)
1253 1253
1254 LOperand* context() { return InputAt(0); } 1254 LOperand* context() { return InputAt(0); }
1255 int slot_index() { return hydrogen()->slot_index(); } 1255 int slot_index() { return hydrogen()->slot_index(); }
1256 1256
1257 virtual void PrintDataTo(StringStream* stream); 1257 virtual void PrintDataTo(StringStream* stream);
1258 }; 1258 };
1259 1259
1260 1260
1261 class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> { 1261 class LStoreContextSlot: public LTemplateInstruction<0, 2, 1> {
1262 public: 1262 public:
1263 LStoreContextSlot(LOperand* context, LOperand* value) { 1263 LStoreContextSlot(LOperand* context, LOperand* value, LOperand* temp) {
1264 inputs_[0] = context; 1264 inputs_[0] = context;
1265 inputs_[1] = value; 1265 inputs_[1] = value;
1266 temps_[0] = temp;
1266 } 1267 }
1267 1268
1268 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") 1269 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot")
1269 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) 1270 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot)
1270 1271
1271 LOperand* context() { return InputAt(0); } 1272 LOperand* context() { return InputAt(0); }
1272 LOperand* value() { return InputAt(1); } 1273 LOperand* value() { return InputAt(1); }
1273 int slot_index() { return hydrogen()->slot_index(); } 1274 int slot_index() { return hydrogen()->slot_index(); }
1274 int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } 1275 int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); }
1275 1276
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2056 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2056 }; 2057 };
2057 2058
2058 #undef DECLARE_HYDROGEN_ACCESSOR 2059 #undef DECLARE_HYDROGEN_ACCESSOR
2059 #undef DECLARE_INSTRUCTION 2060 #undef DECLARE_INSTRUCTION
2060 #undef DECLARE_CONCRETE_INSTRUCTION 2061 #undef DECLARE_CONCRETE_INSTRUCTION
2061 2062
2062 } } // namespace v8::int 2063 } } // namespace v8::int
2063 2064
2064 #endif // V8_X64_LITHIUM_X64_H_ 2065 #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') | src/x64/lithium-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698