| 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 | |
| 293 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 275 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
| 294 context()->PrintTo(stream); | 276 context()->PrintTo(stream); |
| 295 stream->Add("[%d]", slot_index()); | 277 stream->Add("[%d]", slot_index()); |
| 296 } | 278 } |
| 297 | 279 |
| 298 | 280 |
| 299 void LStoreContextSlot::PrintDataTo(StringStream* stream) { | 281 void LStoreContextSlot::PrintDataTo(StringStream* stream) { |
| 300 context()->PrintTo(stream); | 282 context()->PrintTo(stream); |
| 301 stream->Add("[%d] <- ", slot_index()); | 283 stream->Add("[%d] <- ", slot_index()); |
| 302 value()->PrintTo(stream); | 284 value()->PrintTo(stream); |
| (...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 | 2115 |
| 2134 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { | 2116 LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
| 2135 LOperand* global_object = UseFixed(instr->global_object(), r1); | 2117 LOperand* global_object = UseFixed(instr->global_object(), r1); |
| 2136 LOperand* value = UseFixed(instr->value(), r0); | 2118 LOperand* value = UseFixed(instr->value(), r0); |
| 2137 LStoreGlobalGeneric* result = | 2119 LStoreGlobalGeneric* result = |
| 2138 new(zone()) LStoreGlobalGeneric(global_object, value); | 2120 new(zone()) LStoreGlobalGeneric(global_object, value); |
| 2139 return MarkAsCall(result, instr); | 2121 return MarkAsCall(result, instr); |
| 2140 } | 2122 } |
| 2141 | 2123 |
| 2142 | 2124 |
| 2143 LInstruction* LChunkBuilder::DoLinkObjectInList(HLinkObjectInList* instr) { | |
| 2144 LOperand* object = UseRegister(instr->value()); | |
| 2145 LLinkObjectInList* result = new(zone()) LLinkObjectInList(object); | |
| 2146 return result; | |
| 2147 } | |
| 2148 | |
| 2149 | |
| 2150 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2125 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 2151 LOperand* context = UseRegisterAtStart(instr->value()); | 2126 LOperand* context = UseRegisterAtStart(instr->value()); |
| 2152 LInstruction* result = | 2127 LInstruction* result = |
| 2153 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2128 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 2154 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; | 2129 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; |
| 2155 } | 2130 } |
| 2156 | 2131 |
| 2157 | 2132 |
| 2158 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { | 2133 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { |
| 2159 LOperand* context; | 2134 LOperand* context; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2639 | 2614 |
| 2640 | 2615 |
| 2641 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2616 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2642 LOperand* object = UseRegister(instr->object()); | 2617 LOperand* object = UseRegister(instr->object()); |
| 2643 LOperand* index = UseRegister(instr->index()); | 2618 LOperand* index = UseRegister(instr->index()); |
| 2644 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2619 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2645 } | 2620 } |
| 2646 | 2621 |
| 2647 | 2622 |
| 2648 } } // namespace v8::internal | 2623 } } // namespace v8::internal |
| OLD | NEW |