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

Side by Side Diff: src/compiler/code-generator.h

Issue 1775323002: [turbofan] Frame elision for code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MOVED InitializeRootRegister call 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
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_CODE_GENERATOR_H_ 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_
6 #define V8_COMPILER_CODE_GENERATOR_H_ 6 #define V8_COMPILER_CODE_GENERATOR_H_
7 7
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/instruction.h" 9 #include "src/compiler/instruction.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); 99 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition);
100 void AssembleArchLookupSwitch(Instruction* instr); 100 void AssembleArchLookupSwitch(Instruction* instr);
101 void AssembleArchTableSwitch(Instruction* instr); 101 void AssembleArchTableSwitch(Instruction* instr);
102 102
103 void AssembleDeoptimizerCall(int deoptimization_id, 103 void AssembleDeoptimizerCall(int deoptimization_id,
104 Deoptimizer::BailoutType bailout_type); 104 Deoptimizer::BailoutType bailout_type);
105 105
106 // Generates an architecture-specific, descriptor-specific prologue 106 // Generates an architecture-specific, descriptor-specific prologue
107 // to set up a stack frame. 107 // to set up a stack frame.
108 void AssemblePrologue(); 108 void AssemblePrologue();
109
110 void AssembleSetupStackPointer();
Benedikt Meurer 2016/03/30 04:00:25 Nit: Add comment to explain what this is supposed
111
109 // Generates an architecture-specific, descriptor-specific return sequence 112 // Generates an architecture-specific, descriptor-specific return sequence
110 // to tear down a stack frame. 113 // to tear down a stack frame.
111 void AssembleReturn(); 114 void AssembleReturn();
112 115
113 // Generates code to deconstruct a the caller's frame, including arguments. 116 // Generates code to deconstruct a the caller's frame, including arguments.
114 void AssembleDeconstructActivationRecord(int stack_param_delta); 117 void AssembleDeconstructActivationRecord(int stack_param_delta);
115 118
119 void AssembleDeconstructFrame();
Benedikt Meurer 2016/03/30 04:00:25 Nit: Add comment to explain what this is supposed
120
116 // Generates code to manipulate the stack in preparation for a tail call. 121 // Generates code to manipulate the stack in preparation for a tail call.
117 void AssemblePrepareTailCall(int stack_param_delta); 122 void AssemblePrepareTailCall(int stack_param_delta);
118 123
119 // Generates code to pop current frame if it is an arguments adaptor frame. 124 // Generates code to pop current frame if it is an arguments adaptor frame.
120 void AssemblePopArgumentsAdaptorFrame(Register args_reg, Register scratch1, 125 void AssemblePopArgumentsAdaptorFrame(Register args_reg, Register scratch1,
121 Register scratch2, Register scratch3); 126 Register scratch2, Register scratch3);
122 127
123 // =========================================================================== 128 // ===========================================================================
124 // ============== Architecture-specific gap resolver methods. ================ 129 // ============== Architecture-specific gap resolver methods. ================
125 // =========================================================================== 130 // ===========================================================================
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 JumpTable* jump_tables_; 232 JumpTable* jump_tables_;
228 OutOfLineCode* ools_; 233 OutOfLineCode* ools_;
229 int osr_pc_offset_; 234 int osr_pc_offset_;
230 }; 235 };
231 236
232 } // namespace compiler 237 } // namespace compiler
233 } // namespace internal 238 } // namespace internal
234 } // namespace v8 239 } // namespace v8
235 240
236 #endif // V8_COMPILER_CODE_GENERATOR_H 241 #endif // V8_COMPILER_CODE_GENERATOR_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698