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