Reviewers: Yang,
Description:
Fix OptimizeFunctionOnNextCall fix.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/538003002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -1 lines):
M src/compiler.cc
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index
273d3c5388909b9f0f5d2d5831d5ef14363065cc..76417d7c0edb8dc31ed18dcd66832c067fbfd562
100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1246,7 +1246,8 @@ MaybeHandle<Code>
Compiler::GetOptimizedCode(Handle<JSFunction> function,
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.