| 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_X64_LITHIUM_CODEGEN_X64_H_ | 5 #ifndef V8_X64_LITHIUM_CODEGEN_X64_H_ |
| 6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ | 6 #define V8_X64_LITHIUM_CODEGEN_X64_H_ |
| 7 | 7 |
| 8 #include "src/x64/lithium-x64.h" | 8 #include "src/x64/lithium-x64.h" |
| 9 | 9 |
| 10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 | 338 |
| 339 // Compiler from a set of parallel moves to a sequential list of moves. | 339 // Compiler from a set of parallel moves to a sequential list of moves. |
| 340 LGapResolver resolver_; | 340 LGapResolver resolver_; |
| 341 | 341 |
| 342 Safepoint::Kind expected_safepoint_kind_; | 342 Safepoint::Kind expected_safepoint_kind_; |
| 343 | 343 |
| 344 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { | 344 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { |
| 345 public: | 345 public: |
| 346 explicit PushSafepointRegistersScope(LCodeGen* codegen) | 346 explicit PushSafepointRegistersScope(LCodeGen* codegen) |
| 347 : codegen_(codegen) { | 347 : codegen_(codegen) { |
| 348 ASSERT(codegen_->info()->is_calling()); | 348 DCHECK(codegen_->info()->is_calling()); |
| 349 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); | 349 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
| 350 codegen_->masm_->PushSafepointRegisters(); | 350 codegen_->masm_->PushSafepointRegisters(); |
| 351 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; | 351 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; |
| 352 } | 352 } |
| 353 | 353 |
| 354 ~PushSafepointRegistersScope() { | 354 ~PushSafepointRegistersScope() { |
| 355 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); | 355 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); |
| 356 codegen_->masm_->PopSafepointRegisters(); | 356 codegen_->masm_->PopSafepointRegisters(); |
| 357 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; | 357 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; |
| 358 } | 358 } |
| 359 | 359 |
| 360 private: | 360 private: |
| 361 LCodeGen* codegen_; | 361 LCodeGen* codegen_; |
| 362 }; | 362 }; |
| 363 | 363 |
| 364 friend class LDeferredCode; | 364 friend class LDeferredCode; |
| 365 friend class LEnvironment; | 365 friend class LEnvironment; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 396 Label entry_; | 396 Label entry_; |
| 397 Label exit_; | 397 Label exit_; |
| 398 Label done_; | 398 Label done_; |
| 399 Label* external_exit_; | 399 Label* external_exit_; |
| 400 int instruction_index_; | 400 int instruction_index_; |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 } } // namespace v8::internal | 403 } } // namespace v8::internal |
| 404 | 404 |
| 405 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 405 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |