| 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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 6 #define V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/crankshaft/arm/lithium-arm.h" | 9 #include "src/crankshaft/arm/lithium-arm.h" |
| 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 const Runtime::Function* function = Runtime::FunctionForId(id); | 211 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 212 CallRuntime(function, function->nargs, instr); | 212 CallRuntime(function, function->nargs, instr); |
| 213 } | 213 } |
| 214 | 214 |
| 215 void LoadContextFromDeferred(LOperand* context); | 215 void LoadContextFromDeferred(LOperand* context); |
| 216 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 216 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 217 int argc, | 217 int argc, |
| 218 LInstruction* instr, | 218 LInstruction* instr, |
| 219 LOperand* context); | 219 LOperand* context); |
| 220 | 220 |
| 221 void PrepareForTailCall(const ParameterCount& actual, Register scratch1, |
| 222 Register scratch2, Register scratch3); |
| 223 |
| 221 // Generate a direct call to a known function. Expects the function | 224 // Generate a direct call to a known function. Expects the function |
| 222 // to be in r1. | 225 // to be in r1. |
| 223 void CallKnownFunction(Handle<JSFunction> function, | 226 void CallKnownFunction(Handle<JSFunction> function, |
| 224 int formal_parameter_count, int arity, | 227 int formal_parameter_count, int arity, |
| 225 LInstruction* instr); | 228 bool is_tail_call, LInstruction* instr); |
| 226 | 229 |
| 227 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 230 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 228 SafepointMode safepoint_mode); | 231 SafepointMode safepoint_mode); |
| 229 | 232 |
| 230 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 233 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 231 Safepoint::DeoptMode mode); | 234 Safepoint::DeoptMode mode); |
| 232 void DeoptimizeIf(Condition condition, LInstruction* instr, | 235 void DeoptimizeIf(Condition condition, LInstruction* instr, |
| 233 Deoptimizer::DeoptReason deopt_reason, | 236 Deoptimizer::DeoptReason deopt_reason, |
| 234 Deoptimizer::BailoutType bailout_type); | 237 Deoptimizer::BailoutType bailout_type); |
| 235 void DeoptimizeIf(Condition condition, LInstruction* instr, | 238 void DeoptimizeIf(Condition condition, LInstruction* instr, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 Label entry_; | 386 Label entry_; |
| 384 Label exit_; | 387 Label exit_; |
| 385 Label* external_exit_; | 388 Label* external_exit_; |
| 386 int instruction_index_; | 389 int instruction_index_; |
| 387 }; | 390 }; |
| 388 | 391 |
| 389 } // namespace internal | 392 } // namespace internal |
| 390 } // namespace v8 | 393 } // namespace v8 |
| 391 | 394 |
| 392 #endif // V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ | 395 #endif // V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |