Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2025)

Side by Side Diff: src/crankshaft/s390/lithium-s390.cc

Issue 1800233003: [crankshaft] Generate lazy bailout point for HProlog instruction only when it is necessary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 #endif 807 #endif
808 808
809 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { 809 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) {
810 instr = AssignPointerMap(instr); 810 instr = AssignPointerMap(instr);
811 } 811 }
812 if (FLAG_stress_environments && !instr->HasEnvironment()) { 812 if (FLAG_stress_environments && !instr->HasEnvironment()) {
813 instr = AssignEnvironment(instr); 813 instr = AssignEnvironment(instr);
814 } 814 }
815 chunk_->AddInstruction(instr, current_block_); 815 chunk_->AddInstruction(instr, current_block_);
816 816
817 if (instr->IsCall() || instr->IsPrologue()) { 817 if (instr->IsCall()) {
818 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; 818 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val;
819 if (hydrogen_val->HasObservableSideEffects()) { 819 if (hydrogen_val->HasObservableSideEffects()) {
820 HSimulate* sim = HSimulate::cast(hydrogen_val->next()); 820 HSimulate* sim = HSimulate::cast(hydrogen_val->next());
821 sim->ReplayEnvironment(current_block_->last_environment()); 821 sim->ReplayEnvironment(current_block_->last_environment());
822 hydrogen_value_for_lazy_bailout = sim; 822 hydrogen_value_for_lazy_bailout = sim;
823 } 823 }
824 LInstruction* bailout = AssignEnvironment(new (zone()) LLazyBailout()); 824 LInstruction* bailout = AssignEnvironment(new (zone()) LLazyBailout());
825 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); 825 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout);
826 chunk_->AddInstruction(bailout, current_block_); 826 chunk_->AddInstruction(bailout, current_block_);
827 } 827 }
828 } 828 }
829 829
830 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { 830 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) {
831 return new (zone()) LPrologue(); 831 LInstruction* result = new (zone()) LPrologue();
832 if (info_->num_heap_slots() > 0) {
833 result = MarkAsCall(result, instr);
834 }
835 return result;
832 } 836 }
833 837
834 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 838 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
835 return new (zone()) LGoto(instr->FirstSuccessor()); 839 return new (zone()) LGoto(instr->FirstSuccessor());
836 } 840 }
837 841
838 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { 842 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) {
839 HValue* value = instr->value(); 843 HValue* value = instr->value();
840 Representation r = value->representation(); 844 Representation r = value->representation();
841 HType type = value->type(); 845 HType type = value->type();
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 return AssignPointerMap(result); 2299 return AssignPointerMap(result);
2296 } 2300 }
2297 2301
2298 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { 2302 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2299 LOperand* context = UseRegisterAtStart(instr->context()); 2303 LOperand* context = UseRegisterAtStart(instr->context());
2300 return new (zone()) LStoreFrameContext(context); 2304 return new (zone()) LStoreFrameContext(context);
2301 } 2305 }
2302 2306
2303 } // namespace internal 2307 } // namespace internal
2304 } // namespace v8 2308 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698