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

Unified Diff: runtime/vm/object.cc

Issue 2359393003: AOT: Enable optimizing native functions. Removes some initialization of unused split slots. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 2456ed6b1defb6ad7f97bc4650d3a575828b11ee..0a1c7a90eb127d9db154adb37fb6defaaaab60c9 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -5977,13 +5977,13 @@ void Function::SetNumOptionalParameters(intptr_t num_optional_parameters,
bool Function::IsOptimizable() const {
+ if (FLAG_precompiled_mode) {
+ return true;
+ }
if (is_native()) {
// Native methods don't need to be optimized.
return false;
}
- if (FLAG_precompiled_mode) {
- return true;
- }
const intptr_t function_length = end_token_pos().Pos() - token_pos().Pos();
if (is_optimizable() && (script() != Script::null()) &&
(function_length < FLAG_huge_method_cutoff_in_tokens)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698