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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 instr = AssignEnvironment(instr); 880 instr = AssignEnvironment(instr);
881 } 881 }
882 chunk_->AddInstruction(instr, current_block_); 882 chunk_->AddInstruction(instr, current_block_);
883 883
884 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); 884 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val);
885 } 885 }
886 886
887 887
888 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { 888 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) {
889 LInstruction* result = new (zone()) LPrologue(); 889 LInstruction* result = new (zone()) LPrologue();
890 if (info_->scope()->num_heap_slots() > 0) { 890 if (info_->scope()->NeedsContext()) {
891 result = MarkAsCall(result, instr); 891 result = MarkAsCall(result, instr);
892 } 892 }
893 return result; 893 return result;
894 } 894 }
895 895
896 896
897 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 897 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
898 return new(zone()) LGoto(instr->FirstSuccessor()); 898 return new(zone()) LGoto(instr->FirstSuccessor());
899 } 899 }
900 900
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 LOperand* index = UseTempRegister(instr->index()); 2451 LOperand* index = UseTempRegister(instr->index());
2452 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2452 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2453 LInstruction* result = DefineSameAsFirst(load); 2453 LInstruction* result = DefineSameAsFirst(load);
2454 return AssignPointerMap(result); 2454 return AssignPointerMap(result);
2455 } 2455 }
2456 2456
2457 } // namespace internal 2457 } // namespace internal
2458 } // namespace v8 2458 } // namespace v8
2459 2459
2460 #endif // V8_TARGET_ARCH_MIPS64 2460 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698