Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 5351d6fffd85b704cc0c6610847ae339e8f2c860..54a862475f0ac27a1551d3c5ef9b9fc06151e863 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1307,7 +1307,7 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
LoadFromFrameField(JavaScriptFrameConstants::kFunctionOffset, |
descriptor.GetRegisterParameter(0)); |
__ Move(descriptor.GetRegisterParameter(1), |
- Smi::FromInt(expr->literal_index())); |
+ SmiFromSlot(expr->literal_slot())); |
__ Move(descriptor.GetRegisterParameter(2), expr->pattern()); |
__ Move(descriptor.GetRegisterParameter(3), Smi::FromInt(expr->flags())); |
__ Call(callable.code(), RelocInfo::CODE_TARGET); |