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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2430 info()->MarkAsDeferredCalling(); | 2430 info()->MarkAsDeferredCalling(); |
2431 LOperand* context = UseAny(instr->context()); | 2431 LOperand* context = UseAny(instr->context()); |
2432 LOperand* size = UseRegisterOrConstant(instr->size()); | 2432 LOperand* size = UseRegisterOrConstant(instr->size()); |
2433 LOperand* temp1 = TempRegister(); | 2433 LOperand* temp1 = TempRegister(); |
2434 LOperand* temp2 = TempRegister(); | 2434 LOperand* temp2 = TempRegister(); |
2435 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); | 2435 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); |
2436 return AssignPointerMap(DefineAsRegister(result)); | 2436 return AssignPointerMap(DefineAsRegister(result)); |
2437 } | 2437 } |
2438 | 2438 |
2439 | 2439 |
2440 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | |
2441 LOperand* context = UseFixed(instr->context(), cp); | |
2442 return MarkAsCall( | |
2443 DefineFixed(new(zone()) LRegExpLiteral(context), r0), instr); | |
2444 } | |
2445 | |
2446 | |
2447 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2440 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
2448 DCHECK(argument_count_ == 0); | 2441 DCHECK(argument_count_ == 0); |
2449 allocator_->MarkAsOsrEntry(); | 2442 allocator_->MarkAsOsrEntry(); |
2450 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2443 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
2451 return AssignEnvironment(new(zone()) LOsrEntry); | 2444 return AssignEnvironment(new(zone()) LOsrEntry); |
2452 } | 2445 } |
2453 | 2446 |
2454 | 2447 |
2455 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2448 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2456 LParameter* result = new(zone()) LParameter; | 2449 LParameter* result = new(zone()) LParameter; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2643 HAllocateBlockContext* instr) { | 2636 HAllocateBlockContext* instr) { |
2644 LOperand* context = UseFixed(instr->context(), cp); | 2637 LOperand* context = UseFixed(instr->context(), cp); |
2645 LOperand* function = UseRegisterAtStart(instr->function()); | 2638 LOperand* function = UseRegisterAtStart(instr->function()); |
2646 LAllocateBlockContext* result = | 2639 LAllocateBlockContext* result = |
2647 new(zone()) LAllocateBlockContext(context, function); | 2640 new(zone()) LAllocateBlockContext(context, function); |
2648 return MarkAsCall(DefineFixed(result, cp), instr); | 2641 return MarkAsCall(DefineFixed(result, cp), instr); |
2649 } | 2642 } |
2650 | 2643 |
2651 } // namespace internal | 2644 } // namespace internal |
2652 } // namespace v8 | 2645 } // namespace v8 |
OLD | NEW |