| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 deopt_jump_table_(4, info->zone()), | 52 deopt_jump_table_(4, info->zone()), |
| 53 deoptimization_literals_(8, info->zone()), | 53 deoptimization_literals_(8, info->zone()), |
| 54 inlined_function_count_(0), | 54 inlined_function_count_(0), |
| 55 scope_(info->scope()), | 55 scope_(info->scope()), |
| 56 translations_(info->zone()), | 56 translations_(info->zone()), |
| 57 deferred_(8, info->zone()), | 57 deferred_(8, info->zone()), |
| 58 osr_pc_offset_(-1), | 58 osr_pc_offset_(-1), |
| 59 frame_is_built_(false), | 59 frame_is_built_(false), |
| 60 safepoints_(info->zone()), | 60 safepoints_(info->zone()), |
| 61 resolver_(this), | 61 resolver_(this), |
| 62 expected_safepoint_kind_(Safepoint::kSimple), | 62 expected_safepoint_kind_(Safepoint::kSimple) { |
| 63 old_position_(RelocInfo::kNoPosition) { | |
| 64 PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 63 PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 65 } | 64 } |
| 66 | 65 |
| 67 | 66 |
| 68 int LookupDestination(int block_id) const { | 67 int LookupDestination(int block_id) const { |
| 69 return chunk()->LookupDestination(block_id); | 68 return chunk()->LookupDestination(block_id); |
| 70 } | 69 } |
| 71 | 70 |
| 72 bool IsNextEmittedBlock(int block_id) const { | 71 bool IsNextEmittedBlock(int block_id) const { |
| 73 return LookupDestination(block_id) == GetNextEmittedBlock(); | 72 return LookupDestination(block_id) == GetNextEmittedBlock(); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 int arguments, | 283 int arguments, |
| 285 Safepoint::DeoptMode mode); | 284 Safepoint::DeoptMode mode); |
| 286 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 285 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 287 void RecordSafepoint(Safepoint::DeoptMode mode); | 286 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 288 void RecordSafepointWithRegisters(LPointerMap* pointers, | 287 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 289 int arguments, | 288 int arguments, |
| 290 Safepoint::DeoptMode mode); | 289 Safepoint::DeoptMode mode); |
| 291 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 290 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
| 292 int arguments, | 291 int arguments, |
| 293 Safepoint::DeoptMode mode); | 292 Safepoint::DeoptMode mode); |
| 294 void RecordPosition(int position); | 293 |
| 295 void RecordAndUpdatePosition(int position) V8_OVERRIDE; | 294 void RecordAndWritePosition(int position) V8_OVERRIDE; |
| 296 | 295 |
| 297 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 296 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 298 void EmitGoto(int block); | 297 void EmitGoto(int block); |
| 299 template<class InstrType> | 298 template<class InstrType> |
| 300 void EmitBranch(InstrType instr, Condition condition); | 299 void EmitBranch(InstrType instr, Condition condition); |
| 301 template<class InstrType> | 300 template<class InstrType> |
| 302 void EmitFalseBranch(InstrType instr, Condition condition); | 301 void EmitFalseBranch(InstrType instr, Condition condition); |
| 303 void EmitNumberUntagD(Register input, | 302 void EmitNumberUntagD(Register input, |
| 304 DwVfpRegister result, | 303 DwVfpRegister result, |
| 305 bool allow_undefined_as_nan, | 304 bool allow_undefined_as_nan, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 | 373 |
| 375 // Builder that keeps track of safepoints in the code. The table | 374 // Builder that keeps track of safepoints in the code. The table |
| 376 // itself is emitted at the end of the generated code. | 375 // itself is emitted at the end of the generated code. |
| 377 SafepointTableBuilder safepoints_; | 376 SafepointTableBuilder safepoints_; |
| 378 | 377 |
| 379 // Compiler from a set of parallel moves to a sequential list of moves. | 378 // Compiler from a set of parallel moves to a sequential list of moves. |
| 380 LGapResolver resolver_; | 379 LGapResolver resolver_; |
| 381 | 380 |
| 382 Safepoint::Kind expected_safepoint_kind_; | 381 Safepoint::Kind expected_safepoint_kind_; |
| 383 | 382 |
| 384 int old_position_; | |
| 385 | |
| 386 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { | 383 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { |
| 387 public: | 384 public: |
| 388 PushSafepointRegistersScope(LCodeGen* codegen, | 385 PushSafepointRegistersScope(LCodeGen* codegen, |
| 389 Safepoint::Kind kind) | 386 Safepoint::Kind kind) |
| 390 : codegen_(codegen) { | 387 : codegen_(codegen) { |
| 391 ASSERT(codegen_->info()->is_calling()); | 388 ASSERT(codegen_->info()->is_calling()); |
| 392 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); | 389 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
| 393 codegen_->expected_safepoint_kind_ = kind; | 390 codegen_->expected_safepoint_kind_ = kind; |
| 394 | 391 |
| 395 switch (codegen_->expected_safepoint_kind_) { | 392 switch (codegen_->expected_safepoint_kind_) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 LCodeGen* codegen_; | 454 LCodeGen* codegen_; |
| 458 Label entry_; | 455 Label entry_; |
| 459 Label exit_; | 456 Label exit_; |
| 460 Label* external_exit_; | 457 Label* external_exit_; |
| 461 int instruction_index_; | 458 int instruction_index_; |
| 462 }; | 459 }; |
| 463 | 460 |
| 464 } } // namespace v8::internal | 461 } } // namespace v8::internal |
| 465 | 462 |
| 466 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 463 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |