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

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

Issue 19635002: MIPS: The gc should be able to traverse all AllocationSites for decision making. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: 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
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 base_object()->PrintTo(stream); 270 base_object()->PrintTo(stream);
271 stream->Add(" + %d", offset()); 271 stream->Add(" + %d", offset());
272 } 272 }
273 273
274 274
275 void LCallConstantFunction::PrintDataTo(StringStream* stream) { 275 void LCallConstantFunction::PrintDataTo(StringStream* stream) {
276 stream->Add("#%d / ", arity()); 276 stream->Add("#%d / ", arity());
277 } 277 }
278 278
279 279
280 ExternalReference LLinkObjectInList::GetReference(Isolate* isolate) {
281 switch (hydrogen()->known_list()) {
282 case HLinkObjectInList::ALLOCATION_SITE_LIST:
283 return ExternalReference::allocation_sites_list_address(isolate);
284 }
285
286 UNREACHABLE();
287 // Return a dummy value
288 return ExternalReference::isolate_address(isolate);
289 }
290
291
292 void LLinkObjectInList::PrintDataTo(StringStream* stream) {
293 object()->PrintTo(stream);
294 stream->Add(" offset %d", hydrogen()->store_field().offset());
295 }
296
297
280 void LLoadContextSlot::PrintDataTo(StringStream* stream) { 298 void LLoadContextSlot::PrintDataTo(StringStream* stream) {
281 context()->PrintTo(stream); 299 context()->PrintTo(stream);
282 stream->Add("[%d]", slot_index()); 300 stream->Add("[%d]", slot_index());
283 } 301 }
284 302
285 303
286 void LStoreContextSlot::PrintDataTo(StringStream* stream) { 304 void LStoreContextSlot::PrintDataTo(StringStream* stream) {
287 context()->PrintTo(stream); 305 context()->PrintTo(stream);
288 stream->Add("[%d] <- ", slot_index()); 306 stream->Add("[%d] <- ", slot_index());
289 value()->PrintTo(stream); 307 value()->PrintTo(stream);
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 2046
2029 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { 2047 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
2030 LOperand* global_object = UseFixed(instr->global_object(), a1); 2048 LOperand* global_object = UseFixed(instr->global_object(), a1);
2031 LOperand* value = UseFixed(instr->value(), a0); 2049 LOperand* value = UseFixed(instr->value(), a0);
2032 LStoreGlobalGeneric* result = 2050 LStoreGlobalGeneric* result =
2033 new(zone()) LStoreGlobalGeneric(global_object, value); 2051 new(zone()) LStoreGlobalGeneric(global_object, value);
2034 return MarkAsCall(result, instr); 2052 return MarkAsCall(result, instr);
2035 } 2053 }
2036 2054
2037 2055
2056 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) {
2057 LOperand* object = UseRegister(instr->value());
2058 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object);
2059 return result;
2060 }
2061
2062
2038 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 2063 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
2039 LOperand* context = UseRegisterAtStart(instr->value()); 2064 LOperand* context = UseRegisterAtStart(instr->value());
2040 LInstruction* result = 2065 LInstruction* result =
2041 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 2066 DefineAsRegister(new(zone()) LLoadContextSlot(context));
2042 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; 2067 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
2043 } 2068 }
2044 2069
2045 2070
2046 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 2071 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
2047 LOperand* context; 2072 LOperand* context;
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2538 2563
2539 2564
2540 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2541 LOperand* object = UseRegister(instr->object()); 2566 LOperand* object = UseRegister(instr->object());
2542 LOperand* index = UseRegister(instr->index()); 2567 LOperand* index = UseRegister(instr->index());
2543 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2568 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2544 } 2569 }
2545 2570
2546 2571
2547 } } // namespace v8::internal 2572 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698