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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 #endif | 879 #endif |
880 | 880 |
881 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { | 881 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
882 instr = AssignPointerMap(instr); | 882 instr = AssignPointerMap(instr); |
883 } | 883 } |
884 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 884 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
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 if (instr->IsCall() || instr->IsPrologue()) { | 889 if (instr->IsCall()) { |
890 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; | 890 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; |
891 if (hydrogen_val->HasObservableSideEffects()) { | 891 if (hydrogen_val->HasObservableSideEffects()) { |
892 HSimulate* sim = HSimulate::cast(hydrogen_val->next()); | 892 HSimulate* sim = HSimulate::cast(hydrogen_val->next()); |
893 sim->ReplayEnvironment(current_block_->last_environment()); | 893 sim->ReplayEnvironment(current_block_->last_environment()); |
894 hydrogen_value_for_lazy_bailout = sim; | 894 hydrogen_value_for_lazy_bailout = sim; |
895 } | 895 } |
896 LInstruction* bailout = AssignEnvironment(new(zone()) LLazyBailout()); | 896 LInstruction* bailout = AssignEnvironment(new(zone()) LLazyBailout()); |
897 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); | 897 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); |
898 chunk_->AddInstruction(bailout, current_block_); | 898 chunk_->AddInstruction(bailout, current_block_); |
899 } | 899 } |
900 } | 900 } |
901 | 901 |
902 | 902 |
903 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 903 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
904 return new (zone()) LPrologue(); | 904 LInstruction* result = new (zone()) LPrologue(); |
| 905 if (info_->num_heap_slots() > 0) { |
| 906 result = MarkAsCall(result, instr); |
| 907 } |
| 908 return result; |
905 } | 909 } |
906 | 910 |
907 | 911 |
908 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 912 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
909 return new(zone()) LGoto(instr->FirstSuccessor()); | 913 return new(zone()) LGoto(instr->FirstSuccessor()); |
910 } | 914 } |
911 | 915 |
912 | 916 |
913 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { | 917 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { |
914 HValue* value = instr->value(); | 918 HValue* value = instr->value(); |
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2498 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2502 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2499 LOperand* context = UseRegisterAtStart(instr->context()); | 2503 LOperand* context = UseRegisterAtStart(instr->context()); |
2500 return new(zone()) LStoreFrameContext(context); | 2504 return new(zone()) LStoreFrameContext(context); |
2501 } | 2505 } |
2502 | 2506 |
2503 | 2507 |
2504 } // namespace internal | 2508 } // namespace internal |
2505 } // namespace v8 | 2509 } // namespace v8 |
2506 | 2510 |
2507 #endif // V8_TARGET_ARCH_MIPS64 | 2511 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |