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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
7 | 7 |
8 #include "src/arm/lithium-arm.h" | 8 #include "src/arm/lithium-arm.h" |
9 | 9 |
10 #include "src/arm/lithium-gap-resolver-arm.h" | 10 #include "src/arm/lithium-gap-resolver-arm.h" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 // Compiler from a set of parallel moves to a sequential list of moves. | 349 // Compiler from a set of parallel moves to a sequential list of moves. |
350 LGapResolver resolver_; | 350 LGapResolver resolver_; |
351 | 351 |
352 Safepoint::Kind expected_safepoint_kind_; | 352 Safepoint::Kind expected_safepoint_kind_; |
353 | 353 |
354 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { | 354 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { |
355 public: | 355 public: |
356 explicit PushSafepointRegistersScope(LCodeGen* codegen) | 356 explicit PushSafepointRegistersScope(LCodeGen* codegen) |
357 : codegen_(codegen) { | 357 : codegen_(codegen) { |
358 ASSERT(codegen_->info()->is_calling()); | 358 DCHECK(codegen_->info()->is_calling()); |
359 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); | 359 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
360 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; | 360 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; |
361 codegen_->masm_->PushSafepointRegisters(); | 361 codegen_->masm_->PushSafepointRegisters(); |
362 } | 362 } |
363 | 363 |
364 ~PushSafepointRegistersScope() { | 364 ~PushSafepointRegistersScope() { |
365 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); | 365 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); |
366 codegen_->masm_->PopSafepointRegisters(); | 366 codegen_->masm_->PopSafepointRegisters(); |
367 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; | 367 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; |
368 } | 368 } |
369 | 369 |
370 private: | 370 private: |
371 LCodeGen* codegen_; | 371 LCodeGen* codegen_; |
372 }; | 372 }; |
373 | 373 |
374 friend class LDeferredCode; | 374 friend class LDeferredCode; |
375 friend class LEnvironment; | 375 friend class LEnvironment; |
(...skipping 28 matching lines...) Expand all Loading... |
404 LCodeGen* codegen_; | 404 LCodeGen* codegen_; |
405 Label entry_; | 405 Label entry_; |
406 Label exit_; | 406 Label exit_; |
407 Label* external_exit_; | 407 Label* external_exit_; |
408 int instruction_index_; | 408 int instruction_index_; |
409 }; | 409 }; |
410 | 410 |
411 } } // namespace v8::internal | 411 } } // namespace v8::internal |
412 | 412 |
413 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 413 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |