| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 base_object()->PrintTo(stream); | 265 base_object()->PrintTo(stream); |
| 266 stream->Add(" + %d", offset()); | 266 stream->Add(" + %d", offset()); |
| 267 } | 267 } |
| 268 | 268 |
| 269 | 269 |
| 270 void LCallConstantFunction::PrintDataTo(StringStream* stream) { | 270 void LCallConstantFunction::PrintDataTo(StringStream* stream) { |
| 271 stream->Add("#%d / ", arity()); | 271 stream->Add("#%d / ", arity()); |
| 272 } | 272 } |
| 273 | 273 |
| 274 | 274 |
| 275 ExternalReference LLinkObjectInList::GetReference(Isolate* isolate) { |
| 276 switch (hydrogen()->known_list()) { |
| 277 case HLinkObjectInList::ALLOCATION_SITE_LIST: |
| 278 return ExternalReference::allocation_sites_list_address(isolate); |
| 279 } |
| 280 |
| 281 UNREACHABLE(); |
| 282 // Return a dummy value |
| 283 return ExternalReference::isolate_address(isolate); |
| 284 } |
| 285 |
| 286 |
| 287 void LLinkObjectInList::PrintDataTo(StringStream* stream) { |
| 288 object()->PrintTo(stream); |
| 289 stream->Add(" offset %d", hydrogen()->store_field().offset()); |
| 290 } |
| 291 |
| 292 |
| 275 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 293 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
| 276 context()->PrintTo(stream); | 294 context()->PrintTo(stream); |
| 277 stream->Add("[%d]", slot_index()); | 295 stream->Add("[%d]", slot_index()); |
| 278 } | 296 } |
| 279 | 297 |
| 280 | 298 |
| 281 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 299 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
| 282 context()->PrintTo(stream); | 300 context()->PrintTo(stream); |
| 283 stream->Add("[%d] <- ", slot_index()); | 301 stream->Add("[%d] <- ", slot_index()); |
| 284 value()->PrintTo(stream); | 302 value()->PrintTo(stream); |
| (...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 | 2124 |
| 2107 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 2125 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
| 2108 LOperand* global_object = UseFixed(instr->global_object(), r1); | 2126 LOperand* global_object = UseFixed(instr->global_object(), r1); |
| 2109 LOperand* value = UseFixed(instr->value(), r0); | 2127 LOperand* value = UseFixed(instr->value(), r0); |
| 2110 LStoreGlobalGeneric* result = | 2128 LStoreGlobalGeneric* result = |
| 2111 new(zone()) LStoreGlobalGeneric(global_object, value); | 2129 new(zone()) LStoreGlobalGeneric(global_object, value); |
| 2112 return MarkAsCall(result, instr); | 2130 return MarkAsCall(result, instr); |
| 2113 } | 2131 } |
| 2114 | 2132 |
| 2115 | 2133 |
| 2134 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { |
| 2135 LOperand* object = UseRegister(instr->value()); |
| 2136 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object); |
| 2137 return result; |
| 2138 } |
| 2139 |
| 2140 |
| 2116 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2141 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 2117 LOperand* context = UseRegisterAtStart(instr->value()); | 2142 LOperand* context = UseRegisterAtStart(instr->value()); |
| 2118 LInstruction* result = | 2143 LInstruction* result = |
| 2119 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2144 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 2120 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2145 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 2121 } | 2146 } |
| 2122 | 2147 |
| 2123 | 2148 |
| 2124 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2149 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 2125 LOperand* context; | 2150 LOperand* context; |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2615 | 2640 |
| 2616 | 2641 |
| 2617 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2642 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2618 LOperand* object = UseRegister(instr->object()); | 2643 LOperand* object = UseRegister(instr->object()); |
| 2619 LOperand* index = UseRegister(instr->index()); | 2644 LOperand* index = UseRegister(instr->index()); |
| 2620 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2645 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2621 } | 2646 } |
| 2622 | 2647 |
| 2623 | 2648 |
| 2624 } } // namespace v8::internal | 2649 } } // namespace v8::internal |
| OLD | NEW |