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 | |
296 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 278 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
297 context()->PrintTo(stream); | 279 context()->PrintTo(stream); |
298 stream->Add("[%d]", slot_index()); | 280 stream->Add("[%d]", slot_index()); |
299 } | 281 } |
300 | 282 |
301 | 283 |
302 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 284 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
303 context()->PrintTo(stream); | 285 context()->PrintTo(stream); |
304 stream->Add("[%d] <- ", slot_index()); | 286 stream->Add("[%d] <- ", slot_index()); |
305 value()->PrintTo(stream); | 287 value()->PrintTo(stream); |
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2035 | 2017 |
2036 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 2018 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
2037 LOperand* global_object = UseFixed(instr->global_object(), rdx); | 2019 LOperand* global_object = UseFixed(instr->global_object(), rdx); |
2038 LOperand* value = UseFixed(instr->value(), rax); | 2020 LOperand* value = UseFixed(instr->value(), rax); |
2039 LStoreGlobalGeneric* result = new(zone()) LStoreGlobalGeneric(global_object, | 2021 LStoreGlobalGeneric* result = new(zone()) LStoreGlobalGeneric(global_object, |
2040 value); | 2022 value); |
2041 return MarkAsCall(result, instr); | 2023 return MarkAsCall(result, instr); |
2042 } | 2024 } |
2043 | 2025 |
2044 | 2026 |
2045 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { | |
2046 LOperand* object = UseRegister(instr->value()); | |
2047 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object); | |
2048 return result; | |
2049 } | |
2050 | |
2051 | |
2052 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2027 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2053 LOperand* context = UseRegisterAtStart(instr->value()); | 2028 LOperand* context = UseRegisterAtStart(instr->value()); |
2054 LInstruction* result = | 2029 LInstruction* result = |
2055 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2030 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
2056 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2031 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
2057 } | 2032 } |
2058 | 2033 |
2059 | 2034 |
2060 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2035 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
2061 LOperand* context; | 2036 LOperand* context; |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2544 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2570 LOperand* object = UseRegister(instr->object()); | 2545 LOperand* object = UseRegister(instr->object()); |
2571 LOperand* index = UseTempRegister(instr->index()); | 2546 LOperand* index = UseTempRegister(instr->index()); |
2572 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2547 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2573 } | 2548 } |
2574 | 2549 |
2575 | 2550 |
2576 } } // namespace v8::internal | 2551 } } // namespace v8::internal |
2577 | 2552 |
2578 #endif // V8_TARGET_ARCH_X64 | 2553 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |