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

Unified Diff: src/objects.cc

Issue 2481433002: [Interpreter] Add IsInterpreted() to JSFunction and use to fix test-heap tests. (Closed)
Patch Set: Fix always-opt Created 4 years, 1 month 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.cc
diff --git a/src/objects.cc b/src/objects.cc
index fd2cd107a3ecc0aba08aa45066dbf8742210919b..277bd94e192754991fdce6adb5d5e580fd36a02b 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13949,7 +13949,7 @@ void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
}
set_opt_count(0);
set_deopt_count(0);
- } else if (code()->is_interpreter_trampoline_builtin()) {
+ } else if (IsInterpreted()) {
set_profiler_ticks(0);
if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) {
// Re-enable optimizations if they were disabled due to opt_count limit.

Powered by Google App Engine
This is Rietveld 408576698