Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: src/arm/lithium-codegen-arm.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698