| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-ppc.h" | 5 #include "src/ppc/lithium-ppc.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
| 10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
| (...skipping 2428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2439 } | 2439 } |
| 2440 | 2440 |
| 2441 | 2441 |
| 2442 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2442 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2443 LOperand* context = UseFixed(instr->context(), cp); | 2443 LOperand* context = UseFixed(instr->context(), cp); |
| 2444 return MarkAsCall(DefineFixed(new (zone()) LRegExpLiteral(context), r3), | 2444 return MarkAsCall(DefineFixed(new (zone()) LRegExpLiteral(context), r3), |
| 2445 instr); | 2445 instr); |
| 2446 } | 2446 } |
| 2447 | 2447 |
| 2448 | 2448 |
| 2449 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | |
| 2450 LOperand* context = UseFixed(instr->context(), cp); | |
| 2451 return MarkAsCall(DefineFixed(new (zone()) LFunctionLiteral(context), r3), | |
| 2452 instr); | |
| 2453 } | |
| 2454 | |
| 2455 | |
| 2456 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2449 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2457 DCHECK(argument_count_ == 0); | 2450 DCHECK(argument_count_ == 0); |
| 2458 allocator_->MarkAsOsrEntry(); | 2451 allocator_->MarkAsOsrEntry(); |
| 2459 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2452 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2460 return AssignEnvironment(new (zone()) LOsrEntry); | 2453 return AssignEnvironment(new (zone()) LOsrEntry); |
| 2461 } | 2454 } |
| 2462 | 2455 |
| 2463 | 2456 |
| 2464 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2457 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2465 LParameter* result = new (zone()) LParameter; | 2458 LParameter* result = new (zone()) LParameter; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2650 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2643 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2651 HAllocateBlockContext* instr) { | 2644 HAllocateBlockContext* instr) { |
| 2652 LOperand* context = UseFixed(instr->context(), cp); | 2645 LOperand* context = UseFixed(instr->context(), cp); |
| 2653 LOperand* function = UseRegisterAtStart(instr->function()); | 2646 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2654 LAllocateBlockContext* result = | 2647 LAllocateBlockContext* result = |
| 2655 new (zone()) LAllocateBlockContext(context, function); | 2648 new (zone()) LAllocateBlockContext(context, function); |
| 2656 return MarkAsCall(DefineFixed(result, cp), instr); | 2649 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2657 } | 2650 } |
| 2658 } // namespace internal | 2651 } // namespace internal |
| 2659 } // namespace v8 | 2652 } // namespace v8 |
| OLD | NEW |