| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/arm64/lithium-arm64.h" | 8 #include "src/crankshaft/arm64/lithium-arm64.h" |
| 9 | 9 |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 const Runtime::Function* function = Runtime::FunctionForId(id); | 315 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 316 CallRuntime(function, function->nargs, instr); | 316 CallRuntime(function, function->nargs, instr); |
| 317 } | 317 } |
| 318 | 318 |
| 319 void LoadContextFromDeferred(LOperand* context); | 319 void LoadContextFromDeferred(LOperand* context); |
| 320 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 320 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 321 int argc, | 321 int argc, |
| 322 LInstruction* instr, | 322 LInstruction* instr, |
| 323 LOperand* context); | 323 LOperand* context); |
| 324 | 324 |
| 325 void PrepareForTailCall(const ParameterCount& actual, Register scratch1, |
| 326 Register scratch2, Register scratch3); |
| 327 |
| 325 // Generate a direct call to a known function. Expects the function | 328 // Generate a direct call to a known function. Expects the function |
| 326 // to be in x1. | 329 // to be in x1. |
| 327 void CallKnownFunction(Handle<JSFunction> function, | 330 void CallKnownFunction(Handle<JSFunction> function, |
| 328 int formal_parameter_count, int arity, | 331 int formal_parameter_count, int arity, |
| 329 LInstruction* instr); | 332 bool is_tail_call, LInstruction* instr); |
| 330 | 333 |
| 331 // Support for recording safepoint and position information. | 334 // Support for recording safepoint and position information. |
| 332 void RecordAndWritePosition(int position) override; | 335 void RecordAndWritePosition(int position) override; |
| 333 void RecordSafepoint(LPointerMap* pointers, | 336 void RecordSafepoint(LPointerMap* pointers, |
| 334 Safepoint::Kind kind, | 337 Safepoint::Kind kind, |
| 335 int arguments, | 338 int arguments, |
| 336 Safepoint::DeoptMode mode); | 339 Safepoint::DeoptMode mode); |
| 337 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 340 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 338 void RecordSafepoint(Safepoint::DeoptMode mode); | 341 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 339 void RecordSafepointWithRegisters(LPointerMap* pointers, | 342 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 protected: | 458 protected: |
| 456 MacroAssembler* masm() const { return codegen_->masm(); } | 459 MacroAssembler* masm() const { return codegen_->masm(); } |
| 457 | 460 |
| 458 LCodeGen* codegen_; | 461 LCodeGen* codegen_; |
| 459 }; | 462 }; |
| 460 | 463 |
| 461 } // namespace internal | 464 } // namespace internal |
| 462 } // namespace v8 | 465 } // namespace v8 |
| 463 | 466 |
| 464 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 467 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
| OLD | NEW |