| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 for (int i = 0; i < 4; i++) { | 256 for (int i = 0; i < 4; i++) { |
| 257 stream->Add("("); | 257 stream->Add("("); |
| 258 if (parallel_moves_[i] != NULL) { | 258 if (parallel_moves_[i] != NULL) { |
| 259 parallel_moves_[i]->PrintDataTo(stream); | 259 parallel_moves_[i]->PrintDataTo(stream); |
| 260 } | 260 } |
| 261 stream->Add(") "); | 261 stream->Add(") "); |
| 262 } | 262 } |
| 263 } | 263 } |
| 264 | 264 |
| 265 | 265 |
| 266 ExternalReference LLinkObjectInList::GetReference(Isolate* isolate) { |
| 267 switch (hydrogen()->known_list()) { |
| 268 case HLinkObjectInList::ALLOCATION_SITE_LIST: |
| 269 return ExternalReference::allocation_sites_list_address(isolate); |
| 270 } |
| 271 |
| 272 UNREACHABLE(); |
| 273 // Return a dummy value |
| 274 return ExternalReference::isolate_address(isolate); |
| 275 } |
| 276 |
| 277 |
| 278 void LLinkObjectInList::PrintDataTo(StringStream* stream) { |
| 279 object()->PrintTo(stream); |
| 280 stream->Add(" offset %d", hydrogen()->store_field().offset()); |
| 281 } |
| 282 |
| 283 |
| 266 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 284 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
| 267 context()->PrintTo(stream); | 285 context()->PrintTo(stream); |
| 268 stream->Add("[%d]", slot_index()); | 286 stream->Add("[%d]", slot_index()); |
| 269 } | 287 } |
| 270 | 288 |
| 271 | 289 |
| 272 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 290 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
| 273 context()->PrintTo(stream); | 291 context()->PrintTo(stream); |
| 274 stream->Add("[%d] <- ", slot_index()); | 292 stream->Add("[%d] <- ", slot_index()); |
| 275 value()->PrintTo(stream); | 293 value()->PrintTo(stream); |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 } | 1612 } |
| 1595 | 1613 |
| 1596 HEnvironment* outer = | 1614 HEnvironment* outer = |
| 1597 current_block_->last_environment()->DiscardInlined(false); | 1615 current_block_->last_environment()->DiscardInlined(false); |
| 1598 current_block_->UpdateEnvironment(outer); | 1616 current_block_->UpdateEnvironment(outer); |
| 1599 | 1617 |
| 1600 return pop; | 1618 return pop; |
| 1601 } | 1619 } |
| 1602 | 1620 |
| 1603 | 1621 |
| 1622 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { |
| 1623 LOperand* object = UseRegister(instr->value()); |
| 1624 LOperand* temp = TempRegister(); |
| 1625 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object, temp); |
| 1626 return result; |
| 1627 } |
| 1628 |
| 1629 |
| 1604 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1630 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1605 LOperand* context = UseRegisterAtStart(instr->value()); | 1631 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1606 LInstruction* result = | 1632 LInstruction* result = |
| 1607 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 1633 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 1608 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 1634 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 1609 } | 1635 } |
| 1610 | 1636 |
| 1611 | 1637 |
| 1612 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | 1638 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
| 1613 HLoadExternalArrayPointer* instr) { | 1639 HLoadExternalArrayPointer* instr) { |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2506 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2532 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2507 LOperand* receiver = UseRegister(instr->receiver()); | 2533 LOperand* receiver = UseRegister(instr->receiver()); |
| 2508 LOperand* function = UseRegisterAtStart(instr->function()); | 2534 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2509 LOperand* temp = TempRegister(); | 2535 LOperand* temp = TempRegister(); |
| 2510 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2536 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2511 return AssignEnvironment(DefineAsRegister(result)); | 2537 return AssignEnvironment(DefineAsRegister(result)); |
| 2512 } | 2538 } |
| 2513 | 2539 |
| 2514 | 2540 |
| 2515 } } // namespace v8::internal | 2541 } } // namespace v8::internal |
| OLD | NEW |