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