| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 translations_(info->zone()), | 64 translations_(info->zone()), |
| 65 deferred_(8, info->zone()), | 65 deferred_(8, info->zone()), |
| 66 dynamic_frame_alignment_(false), | 66 dynamic_frame_alignment_(false), |
| 67 support_aligned_spilled_doubles_(false), | 67 support_aligned_spilled_doubles_(false), |
| 68 osr_pc_offset_(-1), | 68 osr_pc_offset_(-1), |
| 69 last_lazy_deopt_pc_(0), | 69 last_lazy_deopt_pc_(0), |
| 70 frame_is_built_(false), | 70 frame_is_built_(false), |
| 71 x87_stack_depth_(0), | 71 x87_stack_depth_(0), |
| 72 safepoints_(info->zone()), | 72 safepoints_(info->zone()), |
| 73 resolver_(this), | 73 resolver_(this), |
| 74 expected_safepoint_kind_(Safepoint::kSimple) { | 74 expected_safepoint_kind_(Safepoint::kSimple), |
| 75 old_position_(RelocInfo::kNoPosition) { |
| 75 PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 76 PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 76 } | 77 } |
| 77 | 78 |
| 78 // Simple accessors. | 79 // Simple accessors. |
| 79 MacroAssembler* masm() const { return masm_; } | 80 MacroAssembler* masm() const { return masm_; } |
| 80 CompilationInfo* info() const { return info_; } | 81 CompilationInfo* info() const { return info_; } |
| 81 Isolate* isolate() const { return info_->isolate(); } | 82 Isolate* isolate() const { return info_->isolate(); } |
| 82 Factory* factory() const { return isolate()->factory(); } | 83 Factory* factory() const { return isolate()->factory(); } |
| 83 Heap* heap() const { return isolate()->heap(); } | 84 Heap* heap() const { return isolate()->heap(); } |
| 84 Zone* zone() const { return zone_; } | 85 Zone* zone() const { return zone_; } |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 Safepoint::Kind kind, | 314 Safepoint::Kind kind, |
| 314 int arguments, | 315 int arguments, |
| 315 Safepoint::DeoptMode mode); | 316 Safepoint::DeoptMode mode); |
| 316 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 317 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
| 317 void RecordSafepoint(Safepoint::DeoptMode mode); | 318 void RecordSafepoint(Safepoint::DeoptMode mode); |
| 318 void RecordSafepointWithRegisters(LPointerMap* pointers, | 319 void RecordSafepointWithRegisters(LPointerMap* pointers, |
| 319 int arguments, | 320 int arguments, |
| 320 Safepoint::DeoptMode mode); | 321 Safepoint::DeoptMode mode); |
| 321 void RecordPosition(int position); | 322 void RecordPosition(int position); |
| 322 | 323 |
| 324 void RecordAndUpdatePosition(int position); |
| 325 |
| 323 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 326 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
| 324 void EmitGoto(int block); | 327 void EmitGoto(int block); |
| 325 template<class InstrType> | 328 template<class InstrType> |
| 326 void EmitBranch(InstrType instr, Condition cc); | 329 void EmitBranch(InstrType instr, Condition cc); |
| 327 void EmitNumberUntagD( | 330 void EmitNumberUntagD( |
| 328 Register input, | 331 Register input, |
| 329 Register temp, | 332 Register temp, |
| 330 XMMRegister result, | 333 XMMRegister result, |
| 331 bool allow_undefined_as_nan, | 334 bool allow_undefined_as_nan, |
| 332 bool deoptimize_on_minus_zero, | 335 bool deoptimize_on_minus_zero, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 445 |
| 443 // Builder that keeps track of safepoints in the code. The table | 446 // Builder that keeps track of safepoints in the code. The table |
| 444 // itself is emitted at the end of the generated code. | 447 // itself is emitted at the end of the generated code. |
| 445 SafepointTableBuilder safepoints_; | 448 SafepointTableBuilder safepoints_; |
| 446 | 449 |
| 447 // Compiler from a set of parallel moves to a sequential list of moves. | 450 // Compiler from a set of parallel moves to a sequential list of moves. |
| 448 LGapResolver resolver_; | 451 LGapResolver resolver_; |
| 449 | 452 |
| 450 Safepoint::Kind expected_safepoint_kind_; | 453 Safepoint::Kind expected_safepoint_kind_; |
| 451 | 454 |
| 455 int old_position_; |
| 456 |
| 452 class PushSafepointRegistersScope BASE_EMBEDDED { | 457 class PushSafepointRegistersScope BASE_EMBEDDED { |
| 453 public: | 458 public: |
| 454 explicit PushSafepointRegistersScope(LCodeGen* codegen) | 459 explicit PushSafepointRegistersScope(LCodeGen* codegen) |
| 455 : codegen_(codegen) { | 460 : codegen_(codegen) { |
| 456 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); | 461 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
| 457 codegen_->masm_->PushSafepointRegisters(); | 462 codegen_->masm_->PushSafepointRegisters(); |
| 458 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; | 463 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; |
| 459 ASSERT(codegen_->info()->is_calling()); | 464 ASSERT(codegen_->info()->is_calling()); |
| 460 } | 465 } |
| 461 | 466 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 LCodeGen* codegen_; | 507 LCodeGen* codegen_; |
| 503 Label entry_; | 508 Label entry_; |
| 504 Label exit_; | 509 Label exit_; |
| 505 Label* external_exit_; | 510 Label* external_exit_; |
| 506 int instruction_index_; | 511 int instruction_index_; |
| 507 }; | 512 }; |
| 508 | 513 |
| 509 } } // namespace v8::internal | 514 } } // namespace v8::internal |
| 510 | 515 |
| 511 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 516 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |