OLD | NEW |
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 Loading... |
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 | |
298 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 280 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
299 context()->PrintTo(stream); | 281 context()->PrintTo(stream); |
300 stream->Add("[%d]", slot_index()); | 282 stream->Add("[%d]", slot_index()); |
301 } | 283 } |
302 | 284 |
303 | 285 |
304 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 286 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
305 context()->PrintTo(stream); | 287 context()->PrintTo(stream); |
306 stream->Add("[%d] <- ", slot_index()); | 288 stream->Add("[%d] <- ", slot_index()); |
307 value()->PrintTo(stream); | 289 value()->PrintTo(stream); |
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2055 | 2037 |
2056 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 2038 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
2057 LOperand* global_object = UseFixed(instr->global_object(), a1); | 2039 LOperand* global_object = UseFixed(instr->global_object(), a1); |
2058 LOperand* value = UseFixed(instr->value(), a0); | 2040 LOperand* value = UseFixed(instr->value(), a0); |
2059 LStoreGlobalGeneric* result = | 2041 LStoreGlobalGeneric* result = |
2060 new(zone()) LStoreGlobalGeneric(global_object, value); | 2042 new(zone()) LStoreGlobalGeneric(global_object, value); |
2061 return MarkAsCall(result, instr); | 2043 return MarkAsCall(result, instr); |
2062 } | 2044 } |
2063 | 2045 |
2064 | 2046 |
2065 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { | |
2066 LOperand* object = UseRegister(instr->value()); | |
2067 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object); | |
2068 return result; | |
2069 } | |
2070 | |
2071 | |
2072 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2047 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2073 LOperand* context = UseRegisterAtStart(instr->value()); | 2048 LOperand* context = UseRegisterAtStart(instr->value()); |
2074 LInstruction* result = | 2049 LInstruction* result = |
2075 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2050 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
2076 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2051 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
2077 } | 2052 } |
2078 | 2053 |
2079 | 2054 |
2080 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2055 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
2081 LOperand* context; | 2056 LOperand* context; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 | 2537 |
2563 | 2538 |
2564 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2539 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2565 LOperand* object = UseRegister(instr->object()); | 2540 LOperand* object = UseRegister(instr->object()); |
2566 LOperand* index = UseRegister(instr->index()); | 2541 LOperand* index = UseRegister(instr->index()); |
2567 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2542 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2568 } | 2543 } |
2569 | 2544 |
2570 | 2545 |
2571 } } // namespace v8::internal | 2546 } } // namespace v8::internal |
OLD | NEW |