| 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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2393 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2394 info()->MarkAsDeferredCalling(); | 2394 info()->MarkAsDeferredCalling(); |
| 2395 LOperand* context = UseAny(instr->context()); | 2395 LOperand* context = UseAny(instr->context()); |
| 2396 LOperand* size = UseTempRegister(instr->size()); | 2396 LOperand* size = UseTempRegister(instr->size()); |
| 2397 LOperand* temp = TempRegister(); | 2397 LOperand* temp = TempRegister(); |
| 2398 LAllocate* result = new(zone()) LAllocate(context, size, temp); | 2398 LAllocate* result = new(zone()) LAllocate(context, size, temp); |
| 2399 return AssignPointerMap(DefineAsRegister(result)); | 2399 return AssignPointerMap(DefineAsRegister(result)); |
| 2400 } | 2400 } |
| 2401 | 2401 |
| 2402 | 2402 |
| 2403 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) { | |
| 2404 LOperand* context = UseFixed(instr->context(), esi); | |
| 2405 return MarkAsCall( | |
| 2406 DefineFixed(new(zone()) LFastLiteral(context), eax), instr); | |
| 2407 } | |
| 2408 | |
| 2409 | |
| 2410 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2403 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2411 LOperand* context = UseFixed(instr->context(), esi); | 2404 LOperand* context = UseFixed(instr->context(), esi); |
| 2412 return MarkAsCall( | 2405 return MarkAsCall( |
| 2413 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); | 2406 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); |
| 2414 } | 2407 } |
| 2415 | 2408 |
| 2416 | 2409 |
| 2417 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 2410 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
| 2418 LOperand* context = UseFixed(instr->context(), esi); | 2411 LOperand* context = UseFixed(instr->context(), esi); |
| 2419 return MarkAsCall( | 2412 return MarkAsCall( |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2648 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2641 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2649 LOperand* object = UseRegister(instr->object()); | 2642 LOperand* object = UseRegister(instr->object()); |
| 2650 LOperand* index = UseTempRegister(instr->index()); | 2643 LOperand* index = UseTempRegister(instr->index()); |
| 2651 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2644 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2652 } | 2645 } |
| 2653 | 2646 |
| 2654 | 2647 |
| 2655 } } // namespace v8::internal | 2648 } } // namespace v8::internal |
| 2656 | 2649 |
| 2657 #endif // V8_TARGET_ARCH_IA32 | 2650 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |