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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 Safepoint::Kind kind, | 313 Safepoint::Kind kind, |
313 int arguments, | 314 int arguments, |
314 Safepoint::DeoptMode mode); | 315 Safepoint::DeoptMode mode); |
315 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); | 316 void RecordSafepoint(LPointerMap* pointers, Safepoint::DeoptMode mode); |
316 void RecordSafepoint(Safepoint::DeoptMode mode); | 317 void RecordSafepoint(Safepoint::DeoptMode mode); |
317 void RecordSafepointWithRegisters(LPointerMap* pointers, | 318 void RecordSafepointWithRegisters(LPointerMap* pointers, |
318 int arguments, | 319 int arguments, |
319 Safepoint::DeoptMode mode); | 320 Safepoint::DeoptMode mode); |
320 void RecordPosition(int position); | 321 void RecordPosition(int position); |
321 | 322 |
| 323 void RecordAndUpdatePosition(int position); |
| 324 |
322 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 325 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
323 void EmitGoto(int block); | 326 void EmitGoto(int block); |
324 template<class InstrType> | 327 template<class InstrType> |
325 void EmitBranch(InstrType instr, Condition cc); | 328 void EmitBranch(InstrType instr, Condition cc); |
326 void EmitNumberUntagD( | 329 void EmitNumberUntagD( |
327 Register input, | 330 Register input, |
328 Register temp, | 331 Register temp, |
329 XMMRegister result, | 332 XMMRegister result, |
330 bool allow_undefined_as_nan, | 333 bool allow_undefined_as_nan, |
331 bool deoptimize_on_minus_zero, | 334 bool deoptimize_on_minus_zero, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 444 |
442 // Builder that keeps track of safepoints in the code. The table | 445 // Builder that keeps track of safepoints in the code. The table |
443 // itself is emitted at the end of the generated code. | 446 // itself is emitted at the end of the generated code. |
444 SafepointTableBuilder safepoints_; | 447 SafepointTableBuilder safepoints_; |
445 | 448 |
446 // Compiler from a set of parallel moves to a sequential list of moves. | 449 // Compiler from a set of parallel moves to a sequential list of moves. |
447 LGapResolver resolver_; | 450 LGapResolver resolver_; |
448 | 451 |
449 Safepoint::Kind expected_safepoint_kind_; | 452 Safepoint::Kind expected_safepoint_kind_; |
450 | 453 |
| 454 int old_position_; |
| 455 |
451 class PushSafepointRegistersScope BASE_EMBEDDED { | 456 class PushSafepointRegistersScope BASE_EMBEDDED { |
452 public: | 457 public: |
453 explicit PushSafepointRegistersScope(LCodeGen* codegen) | 458 explicit PushSafepointRegistersScope(LCodeGen* codegen) |
454 : codegen_(codegen) { | 459 : codegen_(codegen) { |
455 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); | 460 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
456 codegen_->masm_->PushSafepointRegisters(); | 461 codegen_->masm_->PushSafepointRegisters(); |
457 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; | 462 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; |
458 ASSERT(codegen_->info()->is_calling()); | 463 ASSERT(codegen_->info()->is_calling()); |
459 } | 464 } |
460 | 465 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 LCodeGen* codegen_; | 506 LCodeGen* codegen_; |
502 Label entry_; | 507 Label entry_; |
503 Label exit_; | 508 Label exit_; |
504 Label* external_exit_; | 509 Label* external_exit_; |
505 int instruction_index_; | 510 int instruction_index_; |
506 }; | 511 }; |
507 | 512 |
508 } } // namespace v8::internal | 513 } } // namespace v8::internal |
509 | 514 |
510 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 515 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |