| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 360 |
| 361 void LCallNew::PrintDataTo(StringStream* stream) { | 361 void LCallNew::PrintDataTo(StringStream* stream) { |
| 362 stream->Add("= "); | 362 stream->Add("= "); |
| 363 context()->PrintTo(stream); | 363 context()->PrintTo(stream); |
| 364 stream->Add(" "); | 364 stream->Add(" "); |
| 365 constructor()->PrintTo(stream); | 365 constructor()->PrintTo(stream); |
| 366 stream->Add(" #%d / ", arity()); | 366 stream->Add(" #%d / ", arity()); |
| 367 } | 367 } |
| 368 | 368 |
| 369 | 369 |
| 370 void LCallNewArray::PrintDataTo(StringStream* stream) { |
| 371 stream->Add("= "); |
| 372 context()->PrintTo(stream); |
| 373 stream->Add(" "); |
| 374 constructor()->PrintTo(stream); |
| 375 stream->Add(" #%d / ", arity()); |
| 376 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); |
| 377 ElementsKind kind = static_cast<ElementsKind>( |
| 378 Smi::cast(hydrogen()->property_cell()->value())->value()); |
| 379 stream->Add(" (%s) ", ElementsKindToString(kind)); |
| 380 } |
| 381 |
| 382 |
| 370 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 383 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
| 371 arguments()->PrintTo(stream); | 384 arguments()->PrintTo(stream); |
| 372 | 385 |
| 373 stream->Add(" length "); | 386 stream->Add(" length "); |
| 374 length()->PrintTo(stream); | 387 length()->PrintTo(stream); |
| 375 | 388 |
| 376 stream->Add(" index "); | 389 stream->Add(" index "); |
| 377 index()->PrintTo(stream); | 390 index()->PrintTo(stream); |
| 378 } | 391 } |
| 379 | 392 |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 | 1212 |
| 1200 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { | 1213 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { |
| 1201 LOperand* context = UseFixed(instr->context(), esi); | 1214 LOperand* context = UseFixed(instr->context(), esi); |
| 1202 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1215 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1203 argument_count_ -= instr->argument_count(); | 1216 argument_count_ -= instr->argument_count(); |
| 1204 LCallNew* result = new(zone()) LCallNew(context, constructor); | 1217 LCallNew* result = new(zone()) LCallNew(context, constructor); |
| 1205 return MarkAsCall(DefineFixed(result, eax), instr); | 1218 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1206 } | 1219 } |
| 1207 | 1220 |
| 1208 | 1221 |
| 1222 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { |
| 1223 LOperand* context = UseFixed(instr->context(), esi); |
| 1224 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1225 argument_count_ -= instr->argument_count(); |
| 1226 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1227 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1228 } |
| 1229 |
| 1230 |
| 1209 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1231 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1210 LOperand* context = UseFixed(instr->context(), esi); | 1232 LOperand* context = UseFixed(instr->context(), esi); |
| 1211 LOperand* function = UseFixed(instr->function(), edi); | 1233 LOperand* function = UseFixed(instr->function(), edi); |
| 1212 argument_count_ -= instr->argument_count(); | 1234 argument_count_ -= instr->argument_count(); |
| 1213 LCallFunction* result = new(zone()) LCallFunction(context, function); | 1235 LCallFunction* result = new(zone()) LCallFunction(context, function); |
| 1214 return MarkAsCall(DefineFixed(result, eax), instr); | 1236 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1215 } | 1237 } |
| 1216 | 1238 |
| 1217 | 1239 |
| 1218 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1240 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| (...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2546 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2568 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2547 LOperand* object = UseRegister(instr->object()); | 2569 LOperand* object = UseRegister(instr->object()); |
| 2548 LOperand* index = UseTempRegister(instr->index()); | 2570 LOperand* index = UseTempRegister(instr->index()); |
| 2549 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2571 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2550 } | 2572 } |
| 2551 | 2573 |
| 2552 | 2574 |
| 2553 } } // namespace v8::internal | 2575 } } // namespace v8::internal |
| 2554 | 2576 |
| 2555 #endif // V8_TARGET_ARCH_IA32 | 2577 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |