| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 stream->Add("= "); | 321 stream->Add("= "); |
| 322 constructor()->PrintTo(stream); | 322 constructor()->PrintTo(stream); |
| 323 stream->Add(" #%d / ", arity()); | 323 stream->Add(" #%d / ", arity()); |
| 324 } | 324 } |
| 325 | 325 |
| 326 | 326 |
| 327 void LCallNewArray::PrintDataTo(StringStream* stream) { | 327 void LCallNewArray::PrintDataTo(StringStream* stream) { |
| 328 stream->Add("= "); | 328 stream->Add("= "); |
| 329 constructor()->PrintTo(stream); | 329 constructor()->PrintTo(stream); |
| 330 stream->Add(" #%d / ", arity()); | 330 stream->Add(" #%d / ", arity()); |
| 331 ASSERT(hydrogen()->property_cell()->value()->IsSmi()); | |
| 332 ElementsKind kind = hydrogen()->elements_kind(); | 331 ElementsKind kind = hydrogen()->elements_kind(); |
| 333 stream->Add(" (%s) ", ElementsKindToString(kind)); | 332 stream->Add(" (%s) ", ElementsKindToString(kind)); |
| 334 } | 333 } |
| 335 | 334 |
| 336 | 335 |
| 337 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 336 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
| 338 arguments()->PrintTo(stream); | 337 arguments()->PrintTo(stream); |
| 339 | 338 |
| 340 stream->Add(" length "); | 339 stream->Add(" length "); |
| 341 length()->PrintTo(stream); | 340 length()->PrintTo(stream); |
| (...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 return AssignPointerMap(DefineAsRegister(result)); | 2331 return AssignPointerMap(DefineAsRegister(result)); |
| 2333 } | 2332 } |
| 2334 | 2333 |
| 2335 | 2334 |
| 2336 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 2335 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 2337 LOperand* string = UseRegisterAtStart(instr->value()); | 2336 LOperand* string = UseRegisterAtStart(instr->value()); |
| 2338 return DefineAsRegister(new(zone()) LStringLength(string)); | 2337 return DefineAsRegister(new(zone()) LStringLength(string)); |
| 2339 } | 2338 } |
| 2340 | 2339 |
| 2341 | 2340 |
| 2342 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { | |
| 2343 info()->MarkAsDeferredCalling(); | |
| 2344 LAllocateObject* result = new(zone()) LAllocateObject(TempRegister()); | |
| 2345 return AssignPointerMap(DefineAsRegister(result)); | |
| 2346 } | |
| 2347 | |
| 2348 | |
| 2349 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2341 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2350 info()->MarkAsDeferredCalling(); | 2342 info()->MarkAsDeferredCalling(); |
| 2351 LOperand* size = instr->size()->IsConstant() | 2343 LOperand* size = instr->size()->IsConstant() |
| 2352 ? UseConstant(instr->size()) | 2344 ? UseConstant(instr->size()) |
| 2353 : UseTempRegister(instr->size()); | 2345 : UseTempRegister(instr->size()); |
| 2354 LOperand* temp = TempRegister(); | 2346 LOperand* temp = TempRegister(); |
| 2355 LAllocate* result = new(zone()) LAllocate(size, temp); | 2347 LAllocate* result = new(zone()) LAllocate(size, temp); |
| 2356 return AssignPointerMap(DefineAsRegister(result)); | 2348 return AssignPointerMap(DefineAsRegister(result)); |
| 2357 } | 2349 } |
| 2358 | 2350 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2556 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2565 LOperand* object = UseRegister(instr->object()); | 2557 LOperand* object = UseRegister(instr->object()); |
| 2566 LOperand* index = UseTempRegister(instr->index()); | 2558 LOperand* index = UseTempRegister(instr->index()); |
| 2567 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2559 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2568 } | 2560 } |
| 2569 | 2561 |
| 2570 | 2562 |
| 2571 } } // namespace v8::internal | 2563 } } // namespace v8::internal |
| 2572 | 2564 |
| 2573 #endif // V8_TARGET_ARCH_X64 | 2565 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |