| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/crankshaft/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2473 LOperand* context = UseAny(instr->context()); | 2473 LOperand* context = UseAny(instr->context()); |
| 2474 LOperand* size = instr->size()->IsConstant() | 2474 LOperand* size = instr->size()->IsConstant() |
| 2475 ? UseConstant(instr->size()) | 2475 ? UseConstant(instr->size()) |
| 2476 : UseTempRegister(instr->size()); | 2476 : UseTempRegister(instr->size()); |
| 2477 LOperand* temp = TempRegister(); | 2477 LOperand* temp = TempRegister(); |
| 2478 LAllocate* result = new(zone()) LAllocate(context, size, temp); | 2478 LAllocate* result = new(zone()) LAllocate(context, size, temp); |
| 2479 return AssignPointerMap(DefineAsRegister(result)); | 2479 return AssignPointerMap(DefineAsRegister(result)); |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 | 2482 |
| 2483 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | |
| 2484 LOperand* context = UseFixed(instr->context(), esi); | |
| 2485 return MarkAsCall( | |
| 2486 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); | |
| 2487 } | |
| 2488 | |
| 2489 | |
| 2490 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2483 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2491 DCHECK(argument_count_ == 0); | 2484 DCHECK(argument_count_ == 0); |
| 2492 allocator_->MarkAsOsrEntry(); | 2485 allocator_->MarkAsOsrEntry(); |
| 2493 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2486 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2494 return AssignEnvironment(new(zone()) LOsrEntry); | 2487 return AssignEnvironment(new(zone()) LOsrEntry); |
| 2495 } | 2488 } |
| 2496 | 2489 |
| 2497 | 2490 |
| 2498 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2491 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2499 LParameter* result = new(zone()) LParameter; | 2492 LParameter* result = new(zone()) LParameter; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2703 LAllocateBlockContext* result = | 2696 LAllocateBlockContext* result = |
| 2704 new(zone()) LAllocateBlockContext(context, function); | 2697 new(zone()) LAllocateBlockContext(context, function); |
| 2705 return MarkAsCall(DefineFixed(result, esi), instr); | 2698 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2706 } | 2699 } |
| 2707 | 2700 |
| 2708 | 2701 |
| 2709 } // namespace internal | 2702 } // namespace internal |
| 2710 } // namespace v8 | 2703 } // namespace v8 |
| 2711 | 2704 |
| 2712 #endif // V8_TARGET_ARCH_IA32 | 2705 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |