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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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, 4 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/x87/lithium-codegen-x87.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 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/x87/lithium-x87.h" 5 #include "src/crankshaft/x87/lithium-x87.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 chunk_->AddInstruction(clobber, current_block_); 918 chunk_->AddInstruction(clobber, current_block_);
919 } 919 }
920 chunk_->AddInstruction(instr, current_block_); 920 chunk_->AddInstruction(instr, current_block_);
921 921
922 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); 922 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val);
923 } 923 }
924 924
925 925
926 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { 926 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) {
927 LInstruction* result = new (zone()) LPrologue(); 927 LInstruction* result = new (zone()) LPrologue();
928 if (info_->scope()->num_heap_slots() > 0) { 928 if (info_->scope()->NeedsContext()) {
929 result = MarkAsCall(result, instr); 929 result = MarkAsCall(result, instr);
930 } 930 }
931 return result; 931 return result;
932 } 932 }
933 933
934 934
935 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 935 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
936 return new(zone()) LGoto(instr->FirstSuccessor()); 936 return new(zone()) LGoto(instr->FirstSuccessor());
937 } 937 }
938 938
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 LOperand* index = UseTempRegister(instr->index()); 2565 LOperand* index = UseTempRegister(instr->index());
2566 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2566 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2567 LInstruction* result = DefineSameAsFirst(load); 2567 LInstruction* result = DefineSameAsFirst(load);
2568 return AssignPointerMap(result); 2568 return AssignPointerMap(result);
2569 } 2569 }
2570 2570
2571 } // namespace internal 2571 } // namespace internal
2572 } // namespace v8 2572 } // namespace v8
2573 2573
2574 #endif // V8_TARGET_ARCH_X87 2574 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698