Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index b8aff87a3ba5f809672dd5edbd866ded7be03ad6..bfea143c60ad8175c95f80b4a238d79bf3ab3cce 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -534,6 +534,7 @@ void FullCodeGenerator::EmitSubString(CallRuntime* expr) { |
VisitForStackValue(args->at(1)); |
VisitForStackValue(args->at(2)); |
__ CallStub(&stub); |
+ RestoreContext(); |
OperandStackDepthDecrement(3); |
context()->Plug(result_register()); |
} |