Revision: 23698
Author: [email protected]
Date: Thu Sep 4 14:07:17 2014 UTC
Log: Fix OptimizeFunctionOnNextCall fix.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/538003002
https://code.google.com/p/v8/source/detail?r=23698
Modified:
/branches/bleeding_edge/src/compiler.cc
=======================================
--- /branches/bleeding_edge/src/compiler.cc Thu Sep 4 11:27:20 2014 UTC
+++ /branches/bleeding_edge/src/compiler.cc Thu Sep 4 14:07:17 2014 UTC
@@ -1246,7 +1246,8 @@
PostponeInterruptsScope postpone(isolate);
Handle<SharedFunctionInfo> shared = info->shared_info();
- if (ScopeInfo::Empty(isolate) == shared->scope_info()) {
+ if (shared->code()->kind() != Code::FUNCTION ||
+ ScopeInfo::Empty(isolate) == shared->scope_info()) {
// The function was never compiled. Compile it unoptimized first.
CompilationInfoWithZone nested(function);
nested.EnableDeoptimizationSupport();
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.