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