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/mips64/lithium-mips64.h" | 5 #include "src/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2438 } | 2438 } |
2439 | 2439 |
2440 | 2440 |
2441 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2441 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
2442 LOperand* context = UseFixed(instr->context(), cp); | 2442 LOperand* context = UseFixed(instr->context(), cp); |
2443 return MarkAsCall( | 2443 return MarkAsCall( |
2444 DefineFixed(new(zone()) LRegExpLiteral(context), v0), instr); | 2444 DefineFixed(new(zone()) LRegExpLiteral(context), v0), instr); |
2445 } | 2445 } |
2446 | 2446 |
2447 | 2447 |
2448 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | |
2449 LOperand* context = UseFixed(instr->context(), cp); | |
2450 return MarkAsCall( | |
2451 DefineFixed(new(zone()) LFunctionLiteral(context), v0), instr); | |
2452 } | |
2453 | |
2454 | |
2455 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2448 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
2456 DCHECK(argument_count_ == 0); | 2449 DCHECK(argument_count_ == 0); |
2457 allocator_->MarkAsOsrEntry(); | 2450 allocator_->MarkAsOsrEntry(); |
2458 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2451 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
2459 return AssignEnvironment(new(zone()) LOsrEntry); | 2452 return AssignEnvironment(new(zone()) LOsrEntry); |
2460 } | 2453 } |
2461 | 2454 |
2462 | 2455 |
2463 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2456 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
2464 LParameter* result = new(zone()) LParameter; | 2457 LParameter* result = new(zone()) LParameter; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 2651 |
2659 | 2652 |
2660 } // namespace internal | 2653 } // namespace internal |
2661 } // namespace v8 | 2654 } // namespace v8 |
2662 | 2655 |
2663 #endif // V8_TARGET_ARCH_MIPS64 | 2656 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |