| 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_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/lithium-codegen.h" | 9 #include "src/lithium-codegen.h" |
| 10 #include "src/mips/lithium-gap-resolver-mips.h" | 10 #include "src/mips/lithium-gap-resolver-mips.h" |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 380 |
| 381 // Compiler from a set of parallel moves to a sequential list of moves. | 381 // Compiler from a set of parallel moves to a sequential list of moves. |
| 382 LGapResolver resolver_; | 382 LGapResolver resolver_; |
| 383 | 383 |
| 384 Safepoint::Kind expected_safepoint_kind_; | 384 Safepoint::Kind expected_safepoint_kind_; |
| 385 | 385 |
| 386 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { | 386 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { |
| 387 public: | 387 public: |
| 388 explicit PushSafepointRegistersScope(LCodeGen* codegen) | 388 explicit PushSafepointRegistersScope(LCodeGen* codegen) |
| 389 : codegen_(codegen) { | 389 : codegen_(codegen) { |
| 390 ASSERT(codegen_->info()->is_calling()); | 390 DCHECK(codegen_->info()->is_calling()); |
| 391 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); | 391 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
| 392 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; | 392 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; |
| 393 | 393 |
| 394 StoreRegistersStateStub stub(codegen_->isolate()); | 394 StoreRegistersStateStub stub(codegen_->isolate()); |
| 395 codegen_->masm_->push(ra); | 395 codegen_->masm_->push(ra); |
| 396 codegen_->masm_->CallStub(&stub); | 396 codegen_->masm_->CallStub(&stub); |
| 397 } | 397 } |
| 398 | 398 |
| 399 ~PushSafepointRegistersScope() { | 399 ~PushSafepointRegistersScope() { |
| 400 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); | 400 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); |
| 401 RestoreRegistersStateStub stub(codegen_->isolate()); | 401 RestoreRegistersStateStub stub(codegen_->isolate()); |
| 402 codegen_->masm_->push(ra); | 402 codegen_->masm_->push(ra); |
| 403 codegen_->masm_->CallStub(&stub); | 403 codegen_->masm_->CallStub(&stub); |
| 404 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; | 404 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; |
| 405 } | 405 } |
| 406 | 406 |
| 407 private: | 407 private: |
| 408 LCodeGen* codegen_; | 408 LCodeGen* codegen_; |
| 409 }; | 409 }; |
| 410 | 410 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 441 LCodeGen* codegen_; | 441 LCodeGen* codegen_; |
| 442 Label entry_; | 442 Label entry_; |
| 443 Label exit_; | 443 Label exit_; |
| 444 Label* external_exit_; | 444 Label* external_exit_; |
| 445 int instruction_index_; | 445 int instruction_index_; |
| 446 }; | 446 }; |
| 447 | 447 |
| 448 } } // namespace v8::internal | 448 } } // namespace v8::internal |
| 449 | 449 |
| 450 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 450 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |