| 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 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2366 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2366 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2367 info()->MarkAsDeferredCalling(); | 2367 info()->MarkAsDeferredCalling(); |
| 2368 LOperand* context = UseAny(instr->context()); | 2368 LOperand* context = UseAny(instr->context()); |
| 2369 LOperand* size = UseTempRegister(instr->size()); | 2369 LOperand* size = UseTempRegister(instr->size()); |
| 2370 LOperand* temp = TempRegister(); | 2370 LOperand* temp = TempRegister(); |
| 2371 LAllocate* result = new(zone()) LAllocate(context, size, temp); | 2371 LAllocate* result = new(zone()) LAllocate(context, size, temp); |
| 2372 return AssignPointerMap(DefineAsRegister(result)); | 2372 return AssignPointerMap(DefineAsRegister(result)); |
| 2373 } | 2373 } |
| 2374 | 2374 |
| 2375 | 2375 |
| 2376 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) { | |
| 2377 LOperand* context = UseFixed(instr->context(), esi); | |
| 2378 return MarkAsCall( | |
| 2379 DefineFixed(new(zone()) LFastLiteral(context), eax), instr); | |
| 2380 } | |
| 2381 | |
| 2382 | |
| 2383 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2376 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2384 LOperand* context = UseFixed(instr->context(), esi); | 2377 LOperand* context = UseFixed(instr->context(), esi); |
| 2385 return MarkAsCall( | 2378 return MarkAsCall( |
| 2386 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); | 2379 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); |
| 2387 } | 2380 } |
| 2388 | 2381 |
| 2389 | 2382 |
| 2390 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 2383 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
| 2391 LOperand* context = UseFixed(instr->context(), esi); | 2384 LOperand* context = UseFixed(instr->context(), esi); |
| 2392 return MarkAsCall( | 2385 return MarkAsCall( |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2621 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2614 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2622 LOperand* object = UseRegister(instr->object()); | 2615 LOperand* object = UseRegister(instr->object()); |
| 2623 LOperand* index = UseTempRegister(instr->index()); | 2616 LOperand* index = UseTempRegister(instr->index()); |
| 2624 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2617 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2625 } | 2618 } |
| 2626 | 2619 |
| 2627 | 2620 |
| 2628 } } // namespace v8::internal | 2621 } } // namespace v8::internal |
| 2629 | 2622 |
| 2630 #endif // V8_TARGET_ARCH_IA32 | 2623 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |