Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 71b1e558c29411a009c1382492b3643e5a365bf4..3f635c70df275ea837606aa81354f6daea36a882 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -4739,6 +4739,9 @@ Expression* Parser::ParseV8Intrinsic(bool* ok) { |
const Runtime::Function* function = Runtime::FunctionForName(name->string()); |
if (function != NULL) { |
+ // Check for possible name clash. |
+ DCHECK_EQ(Context::kNotFound, |
+ Context::IntrinsicIndexForName(name->string())); |
// Check for built-in IS_VAR macro. |
if (function->function_id == Runtime::kIS_VAR) { |
DCHECK_EQ(Runtime::RUNTIME, function->intrinsic_type); |