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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 base_object()->PrintTo(stream); | 268 base_object()->PrintTo(stream); |
269 stream->Add(" + %d", offset()); | 269 stream->Add(" + %d", offset()); |
270 } | 270 } |
271 | 271 |
272 | 272 |
273 void LCallConstantFunction::PrintDataTo(StringStream* stream) { | 273 void LCallConstantFunction::PrintDataTo(StringStream* stream) { |
274 stream->Add("#%d / ", arity()); | 274 stream->Add("#%d / ", arity()); |
275 } | 275 } |
276 | 276 |
277 | 277 |
| 278 ExternalReference LLinkObjectInList::GetReference(Isolate* isolate) { |
| 279 switch (hydrogen()->known_list()) { |
| 280 case HLinkObjectInList::ALLOCATION_SITE_LIST: |
| 281 return ExternalReference::allocation_sites_list_address(isolate); |
| 282 } |
| 283 |
| 284 UNREACHABLE(); |
| 285 // Return a dummy value |
| 286 return ExternalReference::isolate_address(isolate); |
| 287 } |
| 288 |
| 289 |
| 290 void LLinkObjectInList::PrintDataTo(StringStream* stream) { |
| 291 object()->PrintTo(stream); |
| 292 stream->Add(" offset %d", hydrogen()->store_field().offset()); |
| 293 } |
| 294 |
| 295 |
278 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 296 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
279 context()->PrintTo(stream); | 297 context()->PrintTo(stream); |
280 stream->Add("[%d]", slot_index()); | 298 stream->Add("[%d]", slot_index()); |
281 } | 299 } |
282 | 300 |
283 | 301 |
284 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 302 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
285 context()->PrintTo(stream); | 303 context()->PrintTo(stream); |
286 stream->Add("[%d] <- ", slot_index()); | 304 stream->Add("[%d] <- ", slot_index()); |
287 value()->PrintTo(stream); | 305 value()->PrintTo(stream); |
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2021 | 2039 |
2022 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 2040 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
2023 LOperand* global_object = UseFixed(instr->global_object(), rdx); | 2041 LOperand* global_object = UseFixed(instr->global_object(), rdx); |
2024 LOperand* value = UseFixed(instr->value(), rax); | 2042 LOperand* value = UseFixed(instr->value(), rax); |
2025 LStoreGlobalGeneric* result = new(zone()) LStoreGlobalGeneric(global_object, | 2043 LStoreGlobalGeneric* result = new(zone()) LStoreGlobalGeneric(global_object, |
2026 value); | 2044 value); |
2027 return MarkAsCall(result, instr); | 2045 return MarkAsCall(result, instr); |
2028 } | 2046 } |
2029 | 2047 |
2030 | 2048 |
| 2049 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { |
| 2050 LOperand* object = UseRegister(instr->value()); |
| 2051 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object); |
| 2052 return result; |
| 2053 } |
| 2054 |
| 2055 |
2031 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2056 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2032 LOperand* context = UseRegisterAtStart(instr->value()); | 2057 LOperand* context = UseRegisterAtStart(instr->value()); |
2033 LInstruction* result = | 2058 LInstruction* result = |
2034 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2059 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
2035 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2060 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
2036 } | 2061 } |
2037 | 2062 |
2038 | 2063 |
2039 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2064 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
2040 LOperand* context; | 2065 LOperand* context; |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2581 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2557 LOperand* object = UseRegister(instr->object()); | 2582 LOperand* object = UseRegister(instr->object()); |
2558 LOperand* index = UseTempRegister(instr->index()); | 2583 LOperand* index = UseTempRegister(instr->index()); |
2559 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2584 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2560 } | 2585 } |
2561 | 2586 |
2562 | 2587 |
2563 } } // namespace v8::internal | 2588 } } // namespace v8::internal |
2564 | 2589 |
2565 #endif // V8_TARGET_ARCH_X64 | 2590 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |