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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/lithium-arm64.h" 5 #include "src/crankshaft/arm64/lithium-arm64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 720
721 LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) { 721 LInstruction* LChunkBuilder::AssignEnvironment(LInstruction* instr) {
722 HEnvironment* hydrogen_env = current_block_->last_environment(); 722 HEnvironment* hydrogen_env = current_block_->last_environment();
723 return LChunkBuilderBase::AssignEnvironment(instr, hydrogen_env); 723 return LChunkBuilderBase::AssignEnvironment(instr, hydrogen_env);
724 } 724 }
725 725
726 726
727 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { 727 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) {
728 LInstruction* result = new (zone()) LPrologue(); 728 LInstruction* result = new (zone()) LPrologue();
729 if (info_->scope()->num_heap_slots() > 0) { 729 if (info_->scope()->NeedsContext()) {
730 result = MarkAsCall(result, instr); 730 result = MarkAsCall(result, instr);
731 } 731 }
732 return result; 732 return result;
733 } 733 }
734 734
735 735
736 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 736 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
737 // The control instruction marking the end of a block that completed 737 // The control instruction marking the end of a block that completed
738 // abruptly (e.g., threw an exception). There is nothing specific to do. 738 // abruptly (e.g., threw an exception). There is nothing specific to do.
739 return NULL; 739 return NULL;
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 2585
2586 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2586 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2587 LOperand* receiver = UseRegister(instr->receiver()); 2587 LOperand* receiver = UseRegister(instr->receiver());
2588 LOperand* function = UseRegister(instr->function()); 2588 LOperand* function = UseRegister(instr->function());
2589 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2589 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2590 return AssignEnvironment(DefineAsRegister(result)); 2590 return AssignEnvironment(DefineAsRegister(result));
2591 } 2591 }
2592 2592
2593 } // namespace internal 2593 } // namespace internal
2594 } // namespace v8 2594 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698