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

Unified Diff: src/full-codegen.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/frames-inl.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index 73431d54aad890555e9cc06ae4dbee2b197ea5a9..6814946529b5f3aad13af1a78b238e74c2b181ba 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -74,7 +74,7 @@ class FullCodeGenerator: public AstVisitor {
info->zone()),
back_edges_(2, info->zone()),
ic_total_count_(0) {
- ASSERT(!info->IsStub());
+ DCHECK(!info->IsStub());
Initialize();
}
@@ -137,7 +137,7 @@ class FullCodeGenerator: public AstVisitor {
}
virtual ~NestedStatement() {
// Unlink from codegen's nesting stack.
- ASSERT_EQ(this, codegen_->nesting_stack_);
+ DCHECK_EQ(this, codegen_->nesting_stack_);
codegen_->nesting_stack_ = previous_;
}
@@ -581,7 +581,7 @@ class FullCodeGenerator: public AstVisitor {
int loop_depth() { return loop_depth_; }
void increment_loop_depth() { loop_depth_++; }
void decrement_loop_depth() {
- ASSERT(loop_depth_ > 0);
+ DCHECK(loop_depth_ > 0);
loop_depth_--;
}
@@ -765,7 +765,7 @@ class FullCodeGenerator: public AstVisitor {
fall_through_(fall_through) { }
static const TestContext* cast(const ExpressionContext* context) {
- ASSERT(context->IsTest());
+ DCHECK(context->IsTest());
return reinterpret_cast<const TestContext*>(context);
}
@@ -866,7 +866,7 @@ class AccessorTable: public TemplateHashMap<Literal,
class BackEdgeTable {
public:
BackEdgeTable(Code* code, DisallowHeapAllocation* required) {
- ASSERT(code->kind() == Code::FUNCTION);
+ DCHECK(code->kind() == Code::FUNCTION);
instruction_start_ = code->instruction_start();
Address table_address = instruction_start_ + code->back_edge_table_offset();
length_ = Memory::uint32_at(table_address);
@@ -930,7 +930,7 @@ class BackEdgeTable {
private:
Address entry_at(uint32_t index) {
- ASSERT(index < length_);
+ DCHECK(index < length_);
return start_ + index * kEntrySize;
}
« no previous file with comments | « src/frames-inl.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698