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

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

Issue 2269403003: Use NeedsContext() instead of comparing num_heap_slots(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 3 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/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x64/lithium-codegen-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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698