Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 89ced419c019cdb5d12d865bd421f8ebea9daef7..8946f234cd474cace5c9b84a224856e64dd5cd10 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -125,11 +125,8 @@ CompilationInfo::~CompilationInfo() { |
int CompilationInfo::num_parameters() const { |
- if (IsStub()) { |
- return 0; |
- } else { |
- return scope()->num_parameters(); |
- } |
+ ASSERT(!IsStub()); |
+ return scope()->num_parameters(); |
} |