OLD | NEW |
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_X64_LITHIUM_CODEGEN_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
7 | 7 |
8 | 8 |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 CallRuntime(function, function->nargs, instr); | 185 CallRuntime(function, function->nargs, instr); |
186 } | 186 } |
187 | 187 |
188 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 188 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
189 int argc, | 189 int argc, |
190 LInstruction* instr, | 190 LInstruction* instr, |
191 LOperand* context); | 191 LOperand* context); |
192 | 192 |
193 void LoadContextFromDeferred(LOperand* context); | 193 void LoadContextFromDeferred(LOperand* context); |
194 | 194 |
| 195 void PrepareForTailCall(const ParameterCount& actual, Register scratch1, |
| 196 Register scratch2, Register scratch3); |
| 197 |
195 // Generate a direct call to a known function. Expects the function | 198 // Generate a direct call to a known function. Expects the function |
196 // to be in rdi. | 199 // to be in rdi. |
197 void CallKnownFunction(Handle<JSFunction> function, | 200 void CallKnownFunction(Handle<JSFunction> function, |
198 int formal_parameter_count, int arity, | 201 int formal_parameter_count, int arity, |
199 LInstruction* instr); | 202 bool is_tail_call, LInstruction* instr); |
200 | 203 |
201 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 204 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
202 SafepointMode safepoint_mode, | 205 SafepointMode safepoint_mode, |
203 int argc); | 206 int argc); |
204 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 207 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
205 Safepoint::DeoptMode mode); | 208 Safepoint::DeoptMode mode); |
206 void DeoptimizeIf(Condition cc, LInstruction* instr, | 209 void DeoptimizeIf(Condition cc, LInstruction* instr, |
207 Deoptimizer::DeoptReason deopt_reason, | 210 Deoptimizer::DeoptReason deopt_reason, |
208 Deoptimizer::BailoutType bailout_type); | 211 Deoptimizer::BailoutType bailout_type); |
209 void DeoptimizeIf(Condition cc, LInstruction* instr, | 212 void DeoptimizeIf(Condition cc, LInstruction* instr, |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 Label exit_; | 381 Label exit_; |
379 Label done_; | 382 Label done_; |
380 Label* external_exit_; | 383 Label* external_exit_; |
381 int instruction_index_; | 384 int instruction_index_; |
382 }; | 385 }; |
383 | 386 |
384 } // namespace internal | 387 } // namespace internal |
385 } // namespace v8 | 388 } // namespace v8 |
386 | 389 |
387 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ | 390 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |