Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: src/objects-inl.h

Issue 6821009: Introduce runtime function %OptimizeFunctionOnNextCall to manually trigger optimization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 37c51d703db1679ba037990d411533734bfa9de5..0dac18e980b61cf90aaf70e2e63517665ba87b7d 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -3323,6 +3323,11 @@ bool JSFunction::IsOptimized() {
}
+bool JSFunction::IsOptimizable() {
+ return code()->kind() == Code::FUNCTION && code()->optimizable();
+}
+
+
bool JSFunction::IsMarkedForLazyRecompilation() {
return code() == GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile);
}
« no previous file with comments | « src/objects.h ('k') | src/runtime.h » ('j') | test/mjsunit/compiler/optimized-function-calls.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698