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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
7 | 7 |
8 #include "src/arm/lithium-arm.h" | 8 #include "src/arm/lithium-arm.h" |
9 | 9 |
10 #include "src/arm/lithium-gap-resolver-arm.h" | 10 #include "src/arm/lithium-gap-resolver-arm.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 const Runtime::Function* function = Runtime::FunctionForId(id); | 209 const Runtime::Function* function = Runtime::FunctionForId(id); |
210 CallRuntime(function, num_arguments, instr); | 210 CallRuntime(function, num_arguments, instr); |
211 } | 211 } |
212 | 212 |
213 void LoadContextFromDeferred(LOperand* context); | 213 void LoadContextFromDeferred(LOperand* context); |
214 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 214 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
215 int argc, | 215 int argc, |
216 LInstruction* instr, | 216 LInstruction* instr, |
217 LOperand* context); | 217 LOperand* context); |
218 | 218 |
219 enum R1State { | |
220 R1_UNINITIALIZED, | |
221 R1_CONTAINS_TARGET | |
222 }; | |
223 | |
224 // Generate a direct call to a known function. Expects the function | 219 // Generate a direct call to a known function. Expects the function |
225 // to be in r1. | 220 // to be in r1. |
226 void CallKnownFunction(Handle<JSFunction> function, | 221 void CallKnownFunction(Handle<JSFunction> function, |
227 int formal_parameter_count, | 222 int formal_parameter_count, int arity, |
228 int arity, | 223 LInstruction* instr); |
229 LInstruction* instr, | |
230 R1State r1_state); | |
231 | 224 |
232 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 225 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
233 SafepointMode safepoint_mode); | 226 SafepointMode safepoint_mode); |
234 | 227 |
235 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 228 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
236 Safepoint::DeoptMode mode); | 229 Safepoint::DeoptMode mode); |
237 void DeoptimizeIf(Condition condition, LInstruction* instr, | 230 void DeoptimizeIf(Condition condition, LInstruction* instr, |
238 const char* detail, Deoptimizer::BailoutType bailout_type); | 231 const char* detail, Deoptimizer::BailoutType bailout_type); |
239 void DeoptimizeIf(Condition condition, LInstruction* instr, | 232 void DeoptimizeIf(Condition condition, LInstruction* instr, |
240 const char* detail); | 233 const char* detail); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 LCodeGen* codegen_; | 396 LCodeGen* codegen_; |
404 Label entry_; | 397 Label entry_; |
405 Label exit_; | 398 Label exit_; |
406 Label* external_exit_; | 399 Label* external_exit_; |
407 int instruction_index_; | 400 int instruction_index_; |
408 }; | 401 }; |
409 | 402 |
410 } } // namespace v8::internal | 403 } } // namespace v8::internal |
411 | 404 |
412 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 405 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |