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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1775323002: [turbofan] Frame elision for code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/compiler/instruction.h ('k') | src/compiler/jump-threading.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/compiler/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1179
1180 1180
1181 void InstructionSelector::VisitLoadStackPointer(Node* node) { 1181 void InstructionSelector::VisitLoadStackPointer(Node* node) {
1182 OperandGenerator g(this); 1182 OperandGenerator g(this);
1183 Emit(kArchStackPointer, g.DefineAsRegister(node)); 1183 Emit(kArchStackPointer, g.DefineAsRegister(node));
1184 } 1184 }
1185 1185
1186 1186
1187 void InstructionSelector::VisitLoadFramePointer(Node* node) { 1187 void InstructionSelector::VisitLoadFramePointer(Node* node) {
1188 OperandGenerator g(this); 1188 OperandGenerator g(this);
1189 frame_->MarkNeedsFrame();
1190 Emit(kArchFramePointer, g.DefineAsRegister(node)); 1189 Emit(kArchFramePointer, g.DefineAsRegister(node));
1191 } 1190 }
1192 1191
1193 void InstructionSelector::VisitLoadParentFramePointer(Node* node) { 1192 void InstructionSelector::VisitLoadParentFramePointer(Node* node) {
1194 OperandGenerator g(this); 1193 OperandGenerator g(this);
1195 Emit(kArchParentFramePointer, g.DefineAsRegister(node)); 1194 Emit(kArchParentFramePointer, g.DefineAsRegister(node));
1196 } 1195 }
1197 1196
1198 void InstructionSelector::EmitTableSwitch(const SwitchInfo& sw, 1197 void InstructionSelector::EmitTableSwitch(const SwitchInfo& sw,
1199 InstructionOperand& index_operand) { 1198 InstructionOperand& index_operand) {
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 return new (instruction_zone()) FrameStateDescriptor( 1786 return new (instruction_zone()) FrameStateDescriptor(
1788 instruction_zone(), state_info.type(), state_info.bailout_id(), 1787 instruction_zone(), state_info.type(), state_info.bailout_id(),
1789 state_info.state_combine(), parameters, locals, stack, 1788 state_info.state_combine(), parameters, locals, stack,
1790 state_info.shared_info(), outer_state); 1789 state_info.shared_info(), outer_state);
1791 } 1790 }
1792 1791
1793 1792
1794 } // namespace compiler 1793 } // namespace compiler
1795 } // namespace internal 1794 } // namespace internal
1796 } // namespace v8 1795 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/jump-threading.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698