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

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

Issue 18173013: AllocationSite objects weakly linked for traversal (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed final nits Created 7 years, 5 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/ia32/lithium-ia32.h ('k') | src/objects.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 base_object()->PrintTo(stream); 295 base_object()->PrintTo(stream);
296 stream->Add(" + %d", offset()); 296 stream->Add(" + %d", offset());
297 } 297 }
298 298
299 299
300 void LCallConstantFunction::PrintDataTo(StringStream* stream) { 300 void LCallConstantFunction::PrintDataTo(StringStream* stream) {
301 stream->Add("#%d / ", arity()); 301 stream->Add("#%d / ", arity());
302 } 302 }
303 303
304 304
305 ExternalReference LLinkObjectInList::GetReference(Isolate* isolate) {
306 switch (hydrogen()->known_list()) {
307 case HLinkObjectInList::ALLOCATION_SITE_LIST:
308 return ExternalReference::allocation_sites_list_address(isolate);
309 }
310
311 UNREACHABLE();
312 // Return a dummy value
313 return ExternalReference::isolate_address(isolate);
314 }
315
316
317 void LLinkObjectInList::PrintDataTo(StringStream* stream) {
318 object()->PrintTo(stream);
319 stream->Add(" offset %d", hydrogen()->store_field().offset());
320 }
321
322
305 void LLoadContextSlot::PrintDataTo(StringStream* stream) { 323 void LLoadContextSlot::PrintDataTo(StringStream* stream) {
306 context()->PrintTo(stream); 324 context()->PrintTo(stream);
307 stream->Add("[%d]", slot_index()); 325 stream->Add("[%d]", slot_index());
308 } 326 }
309 327
310 328
311 void LStoreContextSlot::PrintDataTo(StringStream* stream) { 329 void LStoreContextSlot::PrintDataTo(StringStream* stream) {
312 context()->PrintTo(stream); 330 context()->PrintTo(stream);
313 stream->Add("[%d] <- ", slot_index()); 331 stream->Add("[%d] <- ", slot_index());
314 value()->PrintTo(stream); 332 value()->PrintTo(stream);
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after
2155 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { 2173 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
2156 LOperand* context = UseFixed(instr->context(), esi); 2174 LOperand* context = UseFixed(instr->context(), esi);
2157 LOperand* global_object = UseFixed(instr->global_object(), edx); 2175 LOperand* global_object = UseFixed(instr->global_object(), edx);
2158 LOperand* value = UseFixed(instr->value(), eax); 2176 LOperand* value = UseFixed(instr->value(), eax);
2159 LStoreGlobalGeneric* result = 2177 LStoreGlobalGeneric* result =
2160 new(zone()) LStoreGlobalGeneric(context, global_object, value); 2178 new(zone()) LStoreGlobalGeneric(context, global_object, value);
2161 return MarkAsCall(result, instr); 2179 return MarkAsCall(result, instr);
2162 } 2180 }
2163 2181
2164 2182
2183 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) {
2184 LOperand* object = UseRegister(instr->value());
2185 LOperand* temp = TempRegister();
2186 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object, temp);
2187 return result;
2188 }
2189
2190
2165 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2191 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2166 LOperand* context = UseRegisterAtStart(instr->value()); 2192 LOperand* context = UseRegisterAtStart(instr->value());
2167 LInstruction* result = 2193 LInstruction* result =
2168 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2194 DefineAsRegister(new(zone()) LLoadContextSlot(context));
2169 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; 2195 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
2170 } 2196 }
2171 2197
2172 2198
2173 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 2199 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
2174 LOperand* value; 2200 LOperand* value;
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2741 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2767 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2742 LOperand* object = UseRegister(instr->object()); 2768 LOperand* object = UseRegister(instr->object());
2743 LOperand* index = UseTempRegister(instr->index()); 2769 LOperand* index = UseTempRegister(instr->index());
2744 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2770 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2745 } 2771 }
2746 2772
2747 2773
2748 } } // namespace v8::internal 2774 } } // namespace v8::internal
2749 2775
2750 #endif // V8_TARGET_ARCH_IA32 2776 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698