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

Side by Side Diff: src/mips/lithium-codegen-mips.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/mips/ic-mips.cc ('k') | src/mips/lithium-codegen-mips.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_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
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
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_
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698