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

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

Issue 6542047: Basic implementation of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 10 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 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 }; 1258 };
1259 1259
1260 1260
1261 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { 1261 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
1262 public: 1262 public:
1263 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") 1263 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
1264 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) 1264 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
1265 }; 1265 };
1266 1266
1267 1267
1268 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { 1268 class LStoreGlobal: public LTemplateInstruction<0, 1, 2> {
1269 public: 1269 public:
1270 explicit LStoreGlobal(LOperand* value) { 1270 explicit LStoreGlobal(LOperand* value, LOperand* temp1, LOperand* temp2) {
1271 inputs_[0] = value; 1271 inputs_[0] = value;
1272 temps_[0] = temp1;
1273 temps_[1] = temp2;
1272 } 1274 }
1273 1275
1276 LOperand* temp1() { return temps_[0]; }
1277 LOperand* temp2() { return temps_[1]; }
1278
1274 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") 1279 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
1275 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) 1280 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal)
1281
1282 private:
1283 LOperand* temp1_;
1284 LOperand* temp2_;
1276 }; 1285 };
1277 1286
1278 1287
1279 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { 1288 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> {
1280 public: 1289 public:
1281 explicit LLoadContextSlot(LOperand* context) { 1290 explicit LLoadContextSlot(LOperand* context) {
1282 inputs_[0] = context; 1291 inputs_[0] = context;
1283 } 1292 }
1284 1293
1285 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") 1294 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot")
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2122 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2114 }; 2123 };
2115 2124
2116 #undef DECLARE_HYDROGEN_ACCESSOR 2125 #undef DECLARE_HYDROGEN_ACCESSOR
2117 #undef DECLARE_INSTRUCTION 2126 #undef DECLARE_INSTRUCTION
2118 #undef DECLARE_CONCRETE_INSTRUCTION 2127 #undef DECLARE_CONCRETE_INSTRUCTION
2119 2128
2120 } } // namespace v8::internal 2129 } } // namespace v8::internal
2121 2130
2122 #endif // V8_IA32_LITHIUM_IA32_H_ 2131 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698