Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index d17696d351117250eddbe7c84948ea78ca7085bb..a898c445748b12de21c046178e3377e8411027ab 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -10924,15 +10924,12 @@ static bool IsClassOfTest(CompareOperation* expr) { |
Literal* literal = expr->right()->AsLiteral(); |
if (literal == NULL) return false; |
if (!literal->value()->IsString()) return false; |
- if (!call->is_jsruntime() && |
- call->function()->function_id != Runtime::kInlineClassOf) { |
- return false; |
- } |
- DCHECK(call->arguments()->length() == 1); |
+ if (call->is_jsruntime()) return false; |
+ if (call->function()->function_id != Runtime::kInlineClassOf) return false; |
+ DCHECK_EQ(call->arguments()->length(), 1); |
return true; |
} |
- |
void HOptimizedGraphBuilder::VisitBinaryOperation(BinaryOperation* expr) { |
DCHECK(!HasStackOverflow()); |
DCHECK(current_block() != NULL); |