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 stream->Add(" = "); | 265 stream->Add(" = "); |
266 function()->PrintTo(stream); | 266 function()->PrintTo(stream); |
267 stream->Add(".code_entry = "); | 267 stream->Add(".code_entry = "); |
268 code_object()->PrintTo(stream); | 268 code_object()->PrintTo(stream); |
269 } | 269 } |
270 | 270 |
271 | 271 |
272 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 272 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
273 stream->Add(" = "); | 273 stream->Add(" = "); |
274 base_object()->PrintTo(stream); | 274 base_object()->PrintTo(stream); |
275 stream->Add(" + %d", offset()); | 275 stream->Add(" + "); |
| 276 offset()->PrintTo(stream); |
276 } | 277 } |
277 | 278 |
278 | 279 |
279 void LCallConstantFunction::PrintDataTo(StringStream* stream) { | 280 void LCallConstantFunction::PrintDataTo(StringStream* stream) { |
280 stream->Add("#%d / ", arity()); | 281 stream->Add("#%d / ", arity()); |
281 } | 282 } |
282 | 283 |
283 | 284 |
284 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 285 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
285 context()->PrintTo(stream); | 286 context()->PrintTo(stream); |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 | 1110 |
1110 LInstruction* LChunkBuilder::DoStoreCodeEntry( | 1111 LInstruction* LChunkBuilder::DoStoreCodeEntry( |
1111 HStoreCodeEntry* store_code_entry) { | 1112 HStoreCodeEntry* store_code_entry) { |
1112 LOperand* function = UseRegister(store_code_entry->function()); | 1113 LOperand* function = UseRegister(store_code_entry->function()); |
1113 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); | 1114 LOperand* code_object = UseTempRegister(store_code_entry->code_object()); |
1114 return new(zone()) LStoreCodeEntry(function, code_object); | 1115 return new(zone()) LStoreCodeEntry(function, code_object); |
1115 } | 1116 } |
1116 | 1117 |
1117 | 1118 |
1118 LInstruction* LChunkBuilder::DoInnerAllocatedObject( | 1119 LInstruction* LChunkBuilder::DoInnerAllocatedObject( |
1119 HInnerAllocatedObject* inner_object) { | 1120 HInnerAllocatedObject* instr) { |
1120 LOperand* base_object = UseRegisterAtStart(inner_object->base_object()); | 1121 LOperand* base_object = UseRegisterAtStart(instr->base_object()); |
1121 LInnerAllocatedObject* result = | 1122 LOperand* offset = UseRegisterOrConstantAtStart(instr->offset()); |
1122 new(zone()) LInnerAllocatedObject(base_object); | 1123 return DefineAsRegister( |
1123 return DefineAsRegister(result); | 1124 new(zone()) LInnerAllocatedObject(base_object, offset)); |
1124 } | 1125 } |
1125 | 1126 |
1126 | 1127 |
1127 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { | 1128 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { |
1128 return instr->HasNoUses() | 1129 return instr->HasNoUses() |
1129 ? NULL | 1130 ? NULL |
1130 : DefineAsRegister(new(zone()) LThisFunction); | 1131 : DefineAsRegister(new(zone()) LThisFunction); |
1131 } | 1132 } |
1132 | 1133 |
1133 | 1134 |
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2671 | 2672 |
2672 | 2673 |
2673 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2674 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2674 LOperand* object = UseRegister(instr->object()); | 2675 LOperand* object = UseRegister(instr->object()); |
2675 LOperand* index = UseRegister(instr->index()); | 2676 LOperand* index = UseRegister(instr->index()); |
2676 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2677 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2677 } | 2678 } |
2678 | 2679 |
2679 | 2680 |
2680 } } // namespace v8::internal | 2681 } } // namespace v8::internal |
OLD | NEW |