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

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

Issue 1008213002: [turbofan] Cache for reusing value vector nodes in frame states. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Embed StateValueCache in AstGraphBuilder Created 5 years, 9 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/ast-graph-builder.cc ('k') | src/compiler/instruction-selector.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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Initialize the call buffer with the InstructionOperands, nodes, etc, 164 // Initialize the call buffer with the InstructionOperands, nodes, etc,
165 // corresponding 165 // corresponding
166 // to the inputs and outputs of the call. 166 // to the inputs and outputs of the call.
167 // {call_code_immediate} to generate immediate operands to calls of code. 167 // {call_code_immediate} to generate immediate operands to calls of code.
168 // {call_address_immediate} to generate immediate operands to address calls. 168 // {call_address_immediate} to generate immediate operands to address calls.
169 void InitializeCallBuffer(Node* call, CallBuffer* buffer, 169 void InitializeCallBuffer(Node* call, CallBuffer* buffer,
170 bool call_code_immediate, 170 bool call_code_immediate,
171 bool call_address_immediate); 171 bool call_address_immediate);
172 172
173 FrameStateDescriptor* GetFrameStateDescriptor(Node* node); 173 FrameStateDescriptor* GetFrameStateDescriptor(Node* node);
174 void FillTypeVectorFromStateValues(ZoneVector<MachineType>* parameters,
175 Node* state_values);
176 void AddFrameStateInputs(Node* state, InstructionOperandVector* inputs, 174 void AddFrameStateInputs(Node* state, InstructionOperandVector* inputs,
177 FrameStateDescriptor* descriptor); 175 FrameStateDescriptor* descriptor);
178 MachineType GetMachineType(Node* node); 176 MachineType GetMachineType(Node* node);
179 177
180 // =========================================================================== 178 // ===========================================================================
181 // ============= Architecture-specific graph covering methods. =============== 179 // ============= Architecture-specific graph covering methods. ===============
182 // =========================================================================== 180 // ===========================================================================
183 181
184 // Visit nodes in the given block and generate code. 182 // Visit nodes in the given block and generate code.
185 void VisitBlock(BasicBlock* block); 183 void VisitBlock(BasicBlock* block);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 BoolVector defined_; 230 BoolVector defined_;
233 BoolVector used_; 231 BoolVector used_;
234 IntVector virtual_registers_; 232 IntVector virtual_registers_;
235 }; 233 };
236 234
237 } // namespace compiler 235 } // namespace compiler
238 } // namespace internal 236 } // namespace internal
239 } // namespace v8 237 } // namespace v8
240 238
241 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 239 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698