| 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/crankshaft/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
| 10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
| (...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2383 info()->MarkAsDeferredCalling(); | 2383 info()->MarkAsDeferredCalling(); |
| 2384 LOperand* context = UseAny(instr->context()); | 2384 LOperand* context = UseAny(instr->context()); |
| 2385 LOperand* size = UseRegisterOrConstant(instr->size()); | 2385 LOperand* size = UseRegisterOrConstant(instr->size()); |
| 2386 LOperand* temp1 = TempRegister(); | 2386 LOperand* temp1 = TempRegister(); |
| 2387 LOperand* temp2 = TempRegister(); | 2387 LOperand* temp2 = TempRegister(); |
| 2388 LAllocate* result = new (zone()) LAllocate(context, size, temp1, temp2); | 2388 LAllocate* result = new (zone()) LAllocate(context, size, temp1, temp2); |
| 2389 return AssignPointerMap(DefineAsRegister(result)); | 2389 return AssignPointerMap(DefineAsRegister(result)); |
| 2390 } | 2390 } |
| 2391 | 2391 |
| 2392 | 2392 |
| 2393 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | |
| 2394 LOperand* context = UseFixed(instr->context(), cp); | |
| 2395 return MarkAsCall(DefineFixed(new (zone()) LRegExpLiteral(context), r3), | |
| 2396 instr); | |
| 2397 } | |
| 2398 | |
| 2399 | |
| 2400 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2393 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2401 DCHECK(argument_count_ == 0); | 2394 DCHECK(argument_count_ == 0); |
| 2402 allocator_->MarkAsOsrEntry(); | 2395 allocator_->MarkAsOsrEntry(); |
| 2403 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2396 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2404 return AssignEnvironment(new (zone()) LOsrEntry); | 2397 return AssignEnvironment(new (zone()) LOsrEntry); |
| 2405 } | 2398 } |
| 2406 | 2399 |
| 2407 | 2400 |
| 2408 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2401 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2409 LParameter* result = new (zone()) LParameter; | 2402 LParameter* result = new (zone()) LParameter; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2594 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2587 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2595 HAllocateBlockContext* instr) { | 2588 HAllocateBlockContext* instr) { |
| 2596 LOperand* context = UseFixed(instr->context(), cp); | 2589 LOperand* context = UseFixed(instr->context(), cp); |
| 2597 LOperand* function = UseRegisterAtStart(instr->function()); | 2590 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2598 LAllocateBlockContext* result = | 2591 LAllocateBlockContext* result = |
| 2599 new (zone()) LAllocateBlockContext(context, function); | 2592 new (zone()) LAllocateBlockContext(context, function); |
| 2600 return MarkAsCall(DefineFixed(result, cp), instr); | 2593 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2601 } | 2594 } |
| 2602 } // namespace internal | 2595 } // namespace internal |
| 2603 } // namespace v8 | 2596 } // namespace v8 |
| OLD | NEW |