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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 instr = AssignEnvironment(instr); | 885 instr = AssignEnvironment(instr); |
886 } | 886 } |
887 chunk_->AddInstruction(instr, current_block_); | 887 chunk_->AddInstruction(instr, current_block_); |
888 | 888 |
889 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 889 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
890 } | 890 } |
891 | 891 |
892 | 892 |
893 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 893 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
894 LInstruction* result = new (zone()) LPrologue(); | 894 LInstruction* result = new (zone()) LPrologue(); |
895 if (info_->scope()->num_heap_slots() > 0) { | 895 if (info_->scope()->NeedsContext()) { |
896 result = MarkAsCall(result, instr); | 896 result = MarkAsCall(result, instr); |
897 } | 897 } |
898 return result; | 898 return result; |
899 } | 899 } |
900 | 900 |
901 | 901 |
902 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 902 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
903 return new (zone()) LGoto(instr->FirstSuccessor()); | 903 return new (zone()) LGoto(instr->FirstSuccessor()); |
904 } | 904 } |
905 | 905 |
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2465 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2466 LOperand* object = UseRegister(instr->object()); | 2466 LOperand* object = UseRegister(instr->object()); |
2467 LOperand* index = UseTempRegister(instr->index()); | 2467 LOperand* index = UseTempRegister(instr->index()); |
2468 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2468 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
2469 LInstruction* result = DefineSameAsFirst(load); | 2469 LInstruction* result = DefineSameAsFirst(load); |
2470 return AssignPointerMap(result); | 2470 return AssignPointerMap(result); |
2471 } | 2471 } |
2472 | 2472 |
2473 } // namespace internal | 2473 } // namespace internal |
2474 } // namespace v8 | 2474 } // namespace v8 |
OLD | NEW |