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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | |
323 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 305 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
324 context()->PrintTo(stream); | 306 context()->PrintTo(stream); |
325 stream->Add("[%d]", slot_index()); | 307 stream->Add("[%d]", slot_index()); |
326 } | 308 } |
327 | 309 |
328 | 310 |
329 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 311 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
330 context()->PrintTo(stream); | 312 context()->PrintTo(stream); |
331 stream->Add("[%d] <- ", slot_index()); | 313 stream->Add("[%d] <- ", slot_index()); |
332 value()->PrintTo(stream); | 314 value()->PrintTo(stream); |
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2184 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 2166 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
2185 LOperand* context = UseFixed(instr->context(), esi); | 2167 LOperand* context = UseFixed(instr->context(), esi); |
2186 LOperand* global_object = UseFixed(instr->global_object(), edx); | 2168 LOperand* global_object = UseFixed(instr->global_object(), edx); |
2187 LOperand* value = UseFixed(instr->value(), eax); | 2169 LOperand* value = UseFixed(instr->value(), eax); |
2188 LStoreGlobalGeneric* result = | 2170 LStoreGlobalGeneric* result = |
2189 new(zone()) LStoreGlobalGeneric(context, global_object, value); | 2171 new(zone()) LStoreGlobalGeneric(context, global_object, value); |
2190 return MarkAsCall(result, instr); | 2172 return MarkAsCall(result, instr); |
2191 } | 2173 } |
2192 | 2174 |
2193 | 2175 |
2194 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { | |
2195 LOperand* object = UseRegister(instr->value()); | |
2196 LOperand* temp = TempRegister(); | |
2197 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object, temp); | |
2198 return result; | |
2199 } | |
2200 | |
2201 | |
2202 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2176 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2203 LOperand* context = UseRegisterAtStart(instr->value()); | 2177 LOperand* context = UseRegisterAtStart(instr->value()); |
2204 LInstruction* result = | 2178 LInstruction* result = |
2205 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2179 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
2206 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2180 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
2207 } | 2181 } |
2208 | 2182 |
2209 | 2183 |
2210 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2184 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
2211 LOperand* value; | 2185 LOperand* value; |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2777 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2751 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2778 LOperand* object = UseRegister(instr->object()); | 2752 LOperand* object = UseRegister(instr->object()); |
2779 LOperand* index = UseTempRegister(instr->index()); | 2753 LOperand* index = UseTempRegister(instr->index()); |
2780 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2754 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2781 } | 2755 } |
2782 | 2756 |
2783 | 2757 |
2784 } } // namespace v8::internal | 2758 } } // namespace v8::internal |
2785 | 2759 |
2786 #endif // V8_TARGET_ARCH_IA32 | 2760 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |