Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 8f7684dfa752c9db9e8777133ddd68300c24599c..2173accfd5f67e714c36855bda59da927eff5f67 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -173,6 +173,7 @@ void FullCodeGenerator::PrepareForBailout(Expression* node, |
void FullCodeGenerator::CallLoadIC(TypeFeedbackId id) { |
Handle<Code> ic = CodeFactory::LoadIC(isolate()).code(); |
CallIC(ic, id); |
+ if (FLAG_tf_load_ic_stub) RestoreContext(); |
} |
void FullCodeGenerator::CallLoadGlobalIC(TypeofMode typeof_mode, |