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

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

Issue 2082263002: [turbofan]: Support using push instructions for setting up tail call parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove stray test change Created 4 years, 5 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 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 kCallTail = 1u << 2 217 kCallTail = 1u << 2
218 }; 218 };
219 typedef base::Flags<CallBufferFlag> CallBufferFlags; 219 typedef base::Flags<CallBufferFlag> CallBufferFlags;
220 220
221 // Initialize the call buffer with the InstructionOperands, nodes, etc, 221 // Initialize the call buffer with the InstructionOperands, nodes, etc,
222 // corresponding 222 // corresponding
223 // to the inputs and outputs of the call. 223 // to the inputs and outputs of the call.
224 // {call_code_immediate} to generate immediate operands to calls of code. 224 // {call_code_immediate} to generate immediate operands to calls of code.
225 // {call_address_immediate} to generate immediate operands to address calls. 225 // {call_address_immediate} to generate immediate operands to address calls.
226 void InitializeCallBuffer(Node* call, CallBuffer* buffer, 226 void InitializeCallBuffer(Node* call, CallBuffer* buffer,
227 CallBufferFlags flags, int stack_param_delta = 0); 227 CallBufferFlags flags, int stack_slot_delta = 0);
228 bool IsTailCallAddressImmediate(); 228 bool IsTailCallAddressImmediate();
229 int GetTempsCountForTailCallFromJSFunction(); 229 int GetTempsCountForTailCallFromJSFunction();
230 230
231 FrameStateDescriptor* GetFrameStateDescriptor(Node* node); 231 FrameStateDescriptor* GetFrameStateDescriptor(Node* node);
232 232
233 // =========================================================================== 233 // ===========================================================================
234 // ============= Architecture-specific graph covering methods. =============== 234 // ============= Architecture-specific graph covering methods. ===============
235 // =========================================================================== 235 // ===========================================================================
236 236
237 // Visit nodes in the given block and generate code. 237 // Visit nodes in the given block and generate code.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 IntVector virtual_registers_; 301 IntVector virtual_registers_;
302 InstructionScheduler* scheduler_; 302 InstructionScheduler* scheduler_;
303 Frame* frame_; 303 Frame* frame_;
304 }; 304 };
305 305
306 } // namespace compiler 306 } // namespace compiler
307 } // namespace internal 307 } // namespace internal
308 } // namespace v8 308 } // namespace v8
309 309
310 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 310 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698