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/arm/lithium-arm.h" | 5 #include "src/arm/lithium-arm.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2486 } | 2486 } |
2487 | 2487 |
2488 | 2488 |
2489 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2489 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
2490 LOperand* context = UseFixed(instr->context(), cp); | 2490 LOperand* context = UseFixed(instr->context(), cp); |
2491 return MarkAsCall( | 2491 return MarkAsCall( |
2492 DefineFixed(new(zone()) LRegExpLiteral(context), r0), instr); | 2492 DefineFixed(new(zone()) LRegExpLiteral(context), r0), instr); |
2493 } | 2493 } |
2494 | 2494 |
2495 | 2495 |
2496 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | |
2497 LOperand* context = UseFixed(instr->context(), cp); | |
2498 return MarkAsCall( | |
2499 DefineFixed(new(zone()) LFunctionLiteral(context), r0), instr); | |
2500 } | |
2501 | |
2502 | |
2503 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2496 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
2504 DCHECK(argument_count_ == 0); | 2497 DCHECK(argument_count_ == 0); |
2505 allocator_->MarkAsOsrEntry(); | 2498 allocator_->MarkAsOsrEntry(); |
2506 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2499 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
2507 return AssignEnvironment(new(zone()) LOsrEntry); | 2500 return AssignEnvironment(new(zone()) LOsrEntry); |
2508 } | 2501 } |
2509 | 2502 |
2510 | 2503 |
2511 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2504 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2512 LParameter* result = new(zone()) LParameter; | 2505 LParameter* result = new(zone()) LParameter; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2699 HAllocateBlockContext* instr) { | 2692 HAllocateBlockContext* instr) { |
2700 LOperand* context = UseFixed(instr->context(), cp); | 2693 LOperand* context = UseFixed(instr->context(), cp); |
2701 LOperand* function = UseRegisterAtStart(instr->function()); | 2694 LOperand* function = UseRegisterAtStart(instr->function()); |
2702 LAllocateBlockContext* result = | 2695 LAllocateBlockContext* result = |
2703 new(zone()) LAllocateBlockContext(context, function); | 2696 new(zone()) LAllocateBlockContext(context, function); |
2704 return MarkAsCall(DefineFixed(result, cp), instr); | 2697 return MarkAsCall(DefineFixed(result, cp), instr); |
2705 } | 2698 } |
2706 | 2699 |
2707 } // namespace internal | 2700 } // namespace internal |
2708 } // namespace v8 | 2701 } // namespace v8 |
OLD | NEW |