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