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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/ic-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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_IA32_LITHIUM_CODEGEN_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_
6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_
7 7
8 #include "src/ia32/lithium-ia32.h" 8 #include "src/ia32/lithium-ia32.h"
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 // Compiler from a set of parallel moves to a sequential list of moves. 354 // Compiler from a set of parallel moves to a sequential list of moves.
355 LGapResolver resolver_; 355 LGapResolver resolver_;
356 356
357 Safepoint::Kind expected_safepoint_kind_; 357 Safepoint::Kind expected_safepoint_kind_;
358 358
359 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED { 359 class PushSafepointRegistersScope V8_FINAL BASE_EMBEDDED {
360 public: 360 public:
361 explicit PushSafepointRegistersScope(LCodeGen* codegen) 361 explicit PushSafepointRegistersScope(LCodeGen* codegen)
362 : codegen_(codegen) { 362 : codegen_(codegen) {
363 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); 363 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kSimple);
364 codegen_->masm_->PushSafepointRegisters(); 364 codegen_->masm_->PushSafepointRegisters();
365 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters; 365 codegen_->expected_safepoint_kind_ = Safepoint::kWithRegisters;
366 ASSERT(codegen_->info()->is_calling()); 366 DCHECK(codegen_->info()->is_calling());
367 } 367 }
368 368
369 ~PushSafepointRegistersScope() { 369 ~PushSafepointRegistersScope() {
370 ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters); 370 DCHECK(codegen_->expected_safepoint_kind_ == Safepoint::kWithRegisters);
371 codegen_->masm_->PopSafepointRegisters(); 371 codegen_->masm_->PopSafepointRegisters();
372 codegen_->expected_safepoint_kind_ = Safepoint::kSimple; 372 codegen_->expected_safepoint_kind_ = Safepoint::kSimple;
373 } 373 }
374 374
375 private: 375 private:
376 LCodeGen* codegen_; 376 LCodeGen* codegen_;
377 }; 377 };
378 378
379 friend class LDeferredCode; 379 friend class LDeferredCode;
380 friend class LEnvironment; 380 friend class LEnvironment;
(...skipping 30 matching lines...) Expand all
411 Label entry_; 411 Label entry_;
412 Label exit_; 412 Label exit_;
413 Label* external_exit_; 413 Label* external_exit_;
414 Label done_; 414 Label done_;
415 int instruction_index_; 415 int instruction_index_;
416 }; 416 };
417 417
418 } } // namespace v8::internal 418 } } // namespace v8::internal
419 419
420 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 420 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698