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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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_MIPS64_LITHIUM_CODEGEN_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/crankshaft/lithium-codegen.h" 9 #include "src/crankshaft/lithium-codegen.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 const Runtime::Function* function = Runtime::FunctionForId(id); 207 const Runtime::Function* function = Runtime::FunctionForId(id);
208 CallRuntime(function, function->nargs, instr); 208 CallRuntime(function, function->nargs, instr);
209 } 209 }
210 210
211 void LoadContextFromDeferred(LOperand* context); 211 void LoadContextFromDeferred(LOperand* context);
212 void CallRuntimeFromDeferred(Runtime::FunctionId id, 212 void CallRuntimeFromDeferred(Runtime::FunctionId id,
213 int argc, 213 int argc,
214 LInstruction* instr, 214 LInstruction* instr,
215 LOperand* context); 215 LOperand* context);
216 216
217 void PrepareForTailCall(const ParameterCount& actual, Register scratch1,
218 Register scratch2, Register scratch3);
219
217 // Generate a direct call to a known function. Expects the function 220 // Generate a direct call to a known function. Expects the function
218 // to be in a1. 221 // to be in a1.
219 void CallKnownFunction(Handle<JSFunction> function, 222 void CallKnownFunction(Handle<JSFunction> function,
220 int formal_parameter_count, int arity, 223 int formal_parameter_count, int arity,
221 LInstruction* instr); 224 bool is_tail_call, LInstruction* instr);
222 225
223 void RecordSafepointWithLazyDeopt(LInstruction* instr, 226 void RecordSafepointWithLazyDeopt(LInstruction* instr,
224 SafepointMode safepoint_mode); 227 SafepointMode safepoint_mode);
225 228
226 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 229 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
227 Safepoint::DeoptMode mode); 230 Safepoint::DeoptMode mode);
228 void DeoptimizeIf(Condition condition, LInstruction* instr, 231 void DeoptimizeIf(Condition condition, LInstruction* instr,
229 Deoptimizer::DeoptReason deopt_reason, 232 Deoptimizer::DeoptReason deopt_reason,
230 Deoptimizer::BailoutType bailout_type, 233 Deoptimizer::BailoutType bailout_type,
231 Register src1 = zero_reg, 234 Register src1 = zero_reg,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 Label entry_; 423 Label entry_;
421 Label exit_; 424 Label exit_;
422 Label* external_exit_; 425 Label* external_exit_;
423 int instruction_index_; 426 int instruction_index_;
424 }; 427 };
425 428
426 } // namespace internal 429 } // namespace internal
427 } // namespace v8 430 } // namespace v8
428 431
429 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ 432 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698