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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.h

Issue 1760253003: [crankshaft] Support ES6 tail call elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-crank-2
Patch Set: Addressing comments Created 4 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/crankshaft/hydrogen-instructions.h ('k') | src/crankshaft/ia32/lithium-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/base/logging.h" 9 #include "src/base/logging.h"
10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 CallRuntime(function, function->nargs, instr); 184 CallRuntime(function, function->nargs, instr);
185 } 185 }
186 186
187 void CallRuntimeFromDeferred(Runtime::FunctionId id, 187 void CallRuntimeFromDeferred(Runtime::FunctionId id,
188 int argc, 188 int argc,
189 LInstruction* instr, 189 LInstruction* instr,
190 LOperand* context); 190 LOperand* context);
191 191
192 void LoadContextFromDeferred(LOperand* context); 192 void LoadContextFromDeferred(LOperand* context);
193 193
194 void PrepareForTailCall(const ParameterCount& actual, Register scratch1,
195 Register scratch2, Register scratch3);
196
194 // Generate a direct call to a known function. Expects the function 197 // Generate a direct call to a known function. Expects the function
195 // to be in edi. 198 // to be in edi.
196 void CallKnownFunction(Handle<JSFunction> function, 199 void CallKnownFunction(Handle<JSFunction> function,
197 int formal_parameter_count, int arity, 200 int formal_parameter_count, int arity,
198 LInstruction* instr); 201 bool is_tail_call, LInstruction* instr);
199 202
200 void RecordSafepointWithLazyDeopt(LInstruction* instr, 203 void RecordSafepointWithLazyDeopt(LInstruction* instr,
201 SafepointMode safepoint_mode); 204 SafepointMode safepoint_mode);
202 205
203 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 206 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
204 Safepoint::DeoptMode mode); 207 Safepoint::DeoptMode mode);
205 void DeoptimizeIf(Condition cc, LInstruction* instr, 208 void DeoptimizeIf(Condition cc, LInstruction* instr,
206 Deoptimizer::DeoptReason deopt_reason, 209 Deoptimizer::DeoptReason deopt_reason,
207 Deoptimizer::BailoutType bailout_type); 210 Deoptimizer::BailoutType bailout_type);
208 void DeoptimizeIf(Condition cc, LInstruction* instr, 211 void DeoptimizeIf(Condition cc, LInstruction* instr,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 Label exit_; 387 Label exit_;
385 Label* external_exit_; 388 Label* external_exit_;
386 Label done_; 389 Label done_;
387 int instruction_index_; 390 int instruction_index_;
388 }; 391 };
389 392
390 } // namespace internal 393 } // namespace internal
391 } // namespace v8 394 } // namespace v8
392 395
393 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ 396 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-instructions.h ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698