| 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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 instr = AssignEnvironment(instr); | 880 instr = AssignEnvironment(instr); |
| 881 } | 881 } |
| 882 chunk_->AddInstruction(instr, current_block_); | 882 chunk_->AddInstruction(instr, current_block_); |
| 883 | 883 |
| 884 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 884 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
| 885 } | 885 } |
| 886 | 886 |
| 887 | 887 |
| 888 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 888 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
| 889 LInstruction* result = new (zone()) LPrologue(); | 889 LInstruction* result = new (zone()) LPrologue(); |
| 890 if (info_->scope()->num_heap_slots() > 0) { | 890 if (info_->scope()->NeedsContext()) { |
| 891 result = MarkAsCall(result, instr); | 891 result = MarkAsCall(result, instr); |
| 892 } | 892 } |
| 893 return result; | 893 return result; |
| 894 } | 894 } |
| 895 | 895 |
| 896 | 896 |
| 897 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 897 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
| 898 return new(zone()) LGoto(instr->FirstSuccessor()); | 898 return new(zone()) LGoto(instr->FirstSuccessor()); |
| 899 } | 899 } |
| 900 | 900 |
| (...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2451 LOperand* index = UseTempRegister(instr->index()); | 2451 LOperand* index = UseTempRegister(instr->index()); |
| 2452 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2452 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2453 LInstruction* result = DefineSameAsFirst(load); | 2453 LInstruction* result = DefineSameAsFirst(load); |
| 2454 return AssignPointerMap(result); | 2454 return AssignPointerMap(result); |
| 2455 } | 2455 } |
| 2456 | 2456 |
| 2457 } // namespace internal | 2457 } // namespace internal |
| 2458 } // namespace v8 | 2458 } // namespace v8 |
| 2459 | 2459 |
| 2460 #endif // V8_TARGET_ARCH_MIPS64 | 2460 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |