Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 31919d866847d4cb522cfb549bea525e4eb7eb2d..99dcec472d51fe580fbdfec14da7ec779a60e697 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -7871,9 +7871,9 @@ void SharedFunctionInfo::AttachInitialMap(Map* map) { |
void SharedFunctionInfo::ResetForNewContext(int new_ic_age) { |
code()->ClearInlineCaches(); |
+ code()->set_profiler_ticks(0); |
set_ic_age(new_ic_age); |
set_opt_count(0); |
- set_profiler_ticks(0); |
} |