Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index e91965ebbe8af126f2991046b04fa80a292594db..0766760deef055742038f27eebf3bd5988a12680 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4646,9 +4646,12 @@ void HGraphBuilder::VisitRegExpLiteral(RegExpLiteral* expr) { |
ASSERT(!HasStackOverflow()); |
ASSERT(current_block() != NULL); |
ASSERT(current_block()->HasPredecessor()); |
+ Handle<JSFunction> closure = function_state()->compilation_info()->closure(); |
+ Handle<FixedArray> literals(closure->literals()); |
HValue* context = environment()->LookupContext(); |
HRegExpLiteral* instr = new(zone()) HRegExpLiteral(context, |
+ literals, |
expr->pattern(), |
expr->flags(), |
expr->literal_index()); |