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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 #endif | 917 #endif |
918 | 918 |
919 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { | 919 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { |
920 instr = AssignPointerMap(instr); | 920 instr = AssignPointerMap(instr); |
921 } | 921 } |
922 if (FLAG_stress_environments && !instr->HasEnvironment()) { | 922 if (FLAG_stress_environments && !instr->HasEnvironment()) { |
923 instr = AssignEnvironment(instr); | 923 instr = AssignEnvironment(instr); |
924 } | 924 } |
925 chunk_->AddInstruction(instr, current_block_); | 925 chunk_->AddInstruction(instr, current_block_); |
926 | 926 |
927 if (instr->IsCall()) { | 927 if (instr->IsCall() || instr->IsPrologue()) { |
928 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; | 928 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; |
929 if (hydrogen_val->HasObservableSideEffects()) { | 929 if (hydrogen_val->HasObservableSideEffects()) { |
930 HSimulate* sim = HSimulate::cast(hydrogen_val->next()); | 930 HSimulate* sim = HSimulate::cast(hydrogen_val->next()); |
931 sim->ReplayEnvironment(current_block_->last_environment()); | 931 sim->ReplayEnvironment(current_block_->last_environment()); |
932 hydrogen_value_for_lazy_bailout = sim; | 932 hydrogen_value_for_lazy_bailout = sim; |
933 } | 933 } |
934 LInstruction* bailout = AssignEnvironment(new(zone()) LLazyBailout()); | 934 LInstruction* bailout = AssignEnvironment(new(zone()) LLazyBailout()); |
935 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); | 935 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); |
936 chunk_->AddInstruction(bailout, current_block_); | 936 chunk_->AddInstruction(bailout, current_block_); |
937 } | 937 } |
938 } | 938 } |
939 | 939 |
940 | 940 |
| 941 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
| 942 return new (zone()) LPrologue(); |
| 943 } |
| 944 |
| 945 |
941 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 946 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
942 return new(zone()) LGoto(instr->FirstSuccessor()); | 947 return new(zone()) LGoto(instr->FirstSuccessor()); |
943 } | 948 } |
944 | 949 |
945 | 950 |
946 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { | 951 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { |
947 HValue* value = instr->value(); | 952 HValue* value = instr->value(); |
948 Representation r = value->representation(); | 953 Representation r = value->representation(); |
949 HType type = value->type(); | 954 HType type = value->type(); |
950 ToBooleanStub::Types expected = instr->expected_input_types(); | 955 ToBooleanStub::Types expected = instr->expected_input_types(); |
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2642 LOperand* function = UseRegisterAtStart(instr->function()); | 2647 LOperand* function = UseRegisterAtStart(instr->function()); |
2643 LAllocateBlockContext* result = | 2648 LAllocateBlockContext* result = |
2644 new(zone()) LAllocateBlockContext(context, function); | 2649 new(zone()) LAllocateBlockContext(context, function); |
2645 return MarkAsCall(DefineFixed(result, cp), instr); | 2650 return MarkAsCall(DefineFixed(result, cp), instr); |
2646 } | 2651 } |
2647 | 2652 |
2648 } // namespace internal | 2653 } // namespace internal |
2649 } // namespace v8 | 2654 } // namespace v8 |
2650 | 2655 |
2651 #endif // V8_TARGET_ARCH_MIPS | 2656 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |