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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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
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/ia32/lithium-ia32.h" 5 #include "src/crankshaft/ia32/lithium-ia32.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 instr = AssignEnvironment(instr); 903 instr = AssignEnvironment(instr);
904 } 904 }
905 chunk_->AddInstruction(instr, current_block_); 905 chunk_->AddInstruction(instr, current_block_);
906 906
907 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); 907 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val);
908 } 908 }
909 909
910 910
911 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { 911 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) {
912 LInstruction* result = new (zone()) LPrologue(); 912 LInstruction* result = new (zone()) LPrologue();
913 if (info_->scope()->num_heap_slots() > 0) { 913 if (info_->scope()->NeedsContext()) {
914 result = MarkAsCall(result, instr); 914 result = MarkAsCall(result, instr);
915 } 915 }
916 return result; 916 return result;
917 } 917 }
918 918
919 919
920 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 920 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
921 return new(zone()) LGoto(instr->FirstSuccessor()); 921 return new(zone()) LGoto(instr->FirstSuccessor());
922 } 922 }
923 923
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 LOperand* index = UseTempRegister(instr->index()); 2563 LOperand* index = UseTempRegister(instr->index());
2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2565 LInstruction* result = DefineSameAsFirst(load); 2565 LInstruction* result = DefineSameAsFirst(load);
2566 return AssignPointerMap(result); 2566 return AssignPointerMap(result);
2567 } 2567 }
2568 2568
2569 } // namespace internal 2569 } // namespace internal
2570 } // namespace v8 2570 } // namespace v8
2571 2571
2572 #endif // V8_TARGET_ARCH_IA32 2572 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698