| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/hydrogen-osr.h" | 7 #include "src/hydrogen-osr.h" |
| 8 #include "src/lithium-allocator-inl.h" | 8 #include "src/lithium-allocator-inl.h" |
| 9 #include "src/mips/lithium-codegen-mips.h" | 9 #include "src/mips/lithium-codegen-mips.h" |
| 10 #include "src/mips/lithium-mips.h" | 10 #include "src/mips/lithium-mips.h" |
| (...skipping 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2308 LOperand* context = UseAny(instr->context()); | 2308 LOperand* context = UseAny(instr->context()); |
| 2309 LStringCharFromCode* result = | 2309 LStringCharFromCode* result = |
| 2310 new(zone()) LStringCharFromCode(context, char_code); | 2310 new(zone()) LStringCharFromCode(context, char_code); |
| 2311 return AssignPointerMap(DefineAsRegister(result)); | 2311 return AssignPointerMap(DefineAsRegister(result)); |
| 2312 } | 2312 } |
| 2313 | 2313 |
| 2314 | 2314 |
| 2315 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2315 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2316 info()->MarkAsDeferredCalling(); | 2316 info()->MarkAsDeferredCalling(); |
| 2317 LOperand* context = UseAny(instr->context()); | 2317 LOperand* context = UseAny(instr->context()); |
| 2318 LOperand* size = instr->size()->IsConstant() | 2318 LOperand* size = UseRegisterOrConstant(instr->size()); |
| 2319 ? UseConstant(instr->size()) | |
| 2320 : UseTempRegister(instr->size()); | |
| 2321 LOperand* temp1 = TempRegister(); | 2319 LOperand* temp1 = TempRegister(); |
| 2322 LOperand* temp2 = TempRegister(); | 2320 LOperand* temp2 = TempRegister(); |
| 2323 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); | 2321 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); |
| 2324 return AssignPointerMap(DefineAsRegister(result)); | 2322 return AssignPointerMap(DefineAsRegister(result)); |
| 2325 } | 2323 } |
| 2326 | 2324 |
| 2327 | 2325 |
| 2328 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2326 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2329 LOperand* context = UseFixed(instr->context(), cp); | 2327 LOperand* context = UseFixed(instr->context(), cp); |
| 2330 return MarkAsCall( | 2328 return MarkAsCall( |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2534 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
| 2537 HAllocateBlockContext* instr) { | 2535 HAllocateBlockContext* instr) { |
| 2538 LOperand* context = UseFixed(instr->context(), cp); | 2536 LOperand* context = UseFixed(instr->context(), cp); |
| 2539 LOperand* function = UseRegisterAtStart(instr->function()); | 2537 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2540 LAllocateBlockContext* result = | 2538 LAllocateBlockContext* result = |
| 2541 new(zone()) LAllocateBlockContext(context, function); | 2539 new(zone()) LAllocateBlockContext(context, function); |
| 2542 return MarkAsCall(DefineFixed(result, cp), instr); | 2540 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2543 } | 2541 } |
| 2544 | 2542 |
| 2545 } } // namespace v8::internal | 2543 } } // namespace v8::internal |
| OLD | NEW |