| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 // Generate a direct call to a known function. Expects the function | 240 // Generate a direct call to a known function. Expects the function |
| 241 // to be in r1. | 241 // to be in r1. |
| 242 void CallKnownFunction(Handle<JSFunction> function, | 242 void CallKnownFunction(Handle<JSFunction> function, |
| 243 int formal_parameter_count, | 243 int formal_parameter_count, |
| 244 int arity, | 244 int arity, |
| 245 LInstruction* instr, | 245 LInstruction* instr, |
| 246 CallKind call_kind, | 246 CallKind call_kind, |
| 247 R1State r1_state); | 247 R1State r1_state); |
| 248 | 248 |
| 249 void LoadHeapObject(Register result, Handle<HeapObject> object); | |
| 250 | |
| 251 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 249 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 252 SafepointMode safepoint_mode); | 250 SafepointMode safepoint_mode); |
| 253 | 251 |
| 254 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 252 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 255 Safepoint::DeoptMode mode); | 253 Safepoint::DeoptMode mode); |
| 256 void DeoptimizeIf(Condition condition, | 254 void DeoptimizeIf(Condition condition, |
| 257 LEnvironment* environment, | 255 LEnvironment* environment, |
| 258 Deoptimizer::BailoutType bailout_type); | 256 Deoptimizer::BailoutType bailout_type); |
| 259 void DeoptimizeIf(Condition condition, LEnvironment* environment); | 257 void DeoptimizeIf(Condition condition, LEnvironment* environment); |
| 260 void ApplyCheckIf(Condition condition, LBoundsCheck* check); | 258 void ApplyCheckIf(Condition condition, LBoundsCheck* check); |
| 261 | 259 |
| 262 void AddToTranslation(LEnvironment* environment, | 260 void AddToTranslation(LEnvironment* environment, |
| 263 Translation* translation, | 261 Translation* translation, |
| 264 LOperand* op, | 262 LOperand* op, |
| 265 bool is_tagged, | 263 bool is_tagged, |
| 266 bool is_uint32, | 264 bool is_uint32, |
| 267 int* object_index_pointer, | 265 int* object_index_pointer, |
| 268 int* dematerialized_index_pointer); | 266 int* dematerialized_index_pointer); |
| 269 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); | 267 void RegisterDependentCodeForEmbeddedMaps(Handle<Code> code); |
| 270 void PopulateDeoptimizationData(Handle<Code> code); | 268 void PopulateDeoptimizationData(Handle<Code> code); |
| 271 int DefineDeoptimizationLiteral(Handle<Object> literal); | 269 int DefineDeoptimizationLiteral(Handle<Object> literal); |
| 272 | 270 |
| 273 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 271 void PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 274 | 272 |
| 275 Register ToRegister(int index) const; | 273 Register ToRegister(int index) const; |
| 276 DwVfpRegister ToDoubleRegister(int index) const; | 274 DwVfpRegister ToDoubleRegister(int index) const; |
| 277 | 275 |
| 276 MemOperand BuildSeqStringOperand(Register string, |
| 277 LOperand* index, |
| 278 String::Encoding encoding); |
| 279 |
| 278 void EmitIntegerMathAbs(LMathAbs* instr); | 280 void EmitIntegerMathAbs(LMathAbs* instr); |
| 279 | 281 |
| 280 // Support for recording safepoint and position information. | 282 // Support for recording safepoint and position information. |
| 281 void RecordSafepoint(LPointerMap* pointers, | 283 void RecordSafepoint(LPointerMap* pointers, |
| 282 Safepoint::Kind kind, | 284 Safepoint::Kind kind, |
| 283 int arguments, | 285 int arguments, |
| 284 Safepoint::DeoptMode mode); | 286 Safepoint::DeoptMode mode); |
| 285 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 287 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 286 void RecordSafepoint(Safepoint::DeoptMode mode); | 288 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 287 void RecordSafepointWithRegisters(LPointerMap* pointers, | 289 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 288 int arguments, | 290 int arguments, |
| 289 Safepoint::DeoptMode mode); | 291 Safepoint::DeoptMode mode); |
| 290 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 292 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| 291 int arguments, | 293 int arguments, |
| 292 Safepoint::DeoptMode mode); | 294 Safepoint::DeoptMode mode); |
| 293 | 295 |
| 294 void RecordAndWritePosition(int position) V8_OVERRIDE; | 296 void RecordAndWritePosition(int position) V8_OVERRIDE; |
| 295 | 297 |
| 296 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 298 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 297 void EmitGoto(int block); | 299 void EmitGoto(int block); |
| 300 |
| 301 // EmitBranch expects to be the last instruction of a block. |
| 298 template<class InstrType> | 302 template<class InstrType> |
| 299 void EmitBranch(InstrType instr, Condition condition); | 303 void EmitBranch(InstrType instr, Condition condition); |
| 300 template<class InstrType> | 304 template<class InstrType> |
| 301 void EmitFalseBranch(InstrType instr, Condition condition); | 305 void EmitFalseBranch(InstrType instr, Condition condition); |
| 302 void EmitNumberUntagD(Register input, | 306 void EmitNumberUntagD(Register input, |
| 303 DwVfpRegister result, | 307 DwVfpRegister result, |
| 304 bool allow_undefined_as_nan, | 308 bool allow_undefined_as_nan, |
| 305 bool deoptimize_on_minus_zero, | 309 bool deoptimize_on_minus_zero, |
| 306 LEnvironment* env, | 310 LEnvironment* env, |
| 307 NumberUntagDMode mode); | 311 NumberUntagDMode mode); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 LCodeGen* codegen_; | 458 LCodeGen* codegen_; |
| 455 Label entry_; | 459 Label entry_; |
| 456 Label exit_; | 460 Label exit_; |
| 457 Label* external_exit_; | 461 Label* external_exit_; |
| 458 int instruction_index_; | 462 int instruction_index_; |
| 459 }; | 463 }; |
| 460 | 464 |
| 461 } } // namespace v8::internal | 465 } } // namespace v8::internal |
| 462 | 466 |
| 463 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 467 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |