| 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/s390/lithium-s390.h" | 5 #include "src/crankshaft/s390/lithium-s390.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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 808 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
| 809 instr = AssignEnvironment(instr); | 809 instr = AssignEnvironment(instr); |
| 810 } | 810 } |
| 811 chunk_->AddInstruction(instr, current_block_); | 811 chunk_->AddInstruction(instr, current_block_); |
| 812 | 812 |
| 813 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 813 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
| 814 } | 814 } |
| 815 | 815 |
| 816 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 816 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
| 817 LInstruction* result = new (zone()) LPrologue(); | 817 LInstruction* result = new (zone()) LPrologue(); |
| 818 if (info_->scope()->num_heap_slots() > 0) { | 818 if (info_->scope()->NeedsContext()) { |
| 819 result = MarkAsCall(result, instr); | 819 result = MarkAsCall(result, instr); |
| 820 } | 820 } |
| 821 return result; | 821 return result; |
| 822 } | 822 } |
| 823 | 823 |
| 824 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 824 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
| 825 return new (zone()) LGoto(instr->FirstSuccessor()); | 825 return new (zone()) LGoto(instr->FirstSuccessor()); |
| 826 } | 826 } |
| 827 | 827 |
| 828 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { | 828 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { |
| (...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2258 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2259 LOperand* object = UseRegister(instr->object()); | 2259 LOperand* object = UseRegister(instr->object()); |
| 2260 LOperand* index = UseTempRegister(instr->index()); | 2260 LOperand* index = UseTempRegister(instr->index()); |
| 2261 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2261 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
| 2262 LInstruction* result = DefineSameAsFirst(load); | 2262 LInstruction* result = DefineSameAsFirst(load); |
| 2263 return AssignPointerMap(result); | 2263 return AssignPointerMap(result); |
| 2264 } | 2264 } |
| 2265 | 2265 |
| 2266 } // namespace internal | 2266 } // namespace internal |
| 2267 } // namespace v8 | 2267 } // namespace v8 |
| OLD | NEW |