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

Side by Side Diff: src/heap.h

Issue 14091013: Add a flag to deoptimize all functions every n garbage collections. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comment Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2288 2288
2289 int number_idle_notifications_; 2289 int number_idle_notifications_;
2290 unsigned int last_idle_notification_gc_count_; 2290 unsigned int last_idle_notification_gc_count_;
2291 bool last_idle_notification_gc_count_init_; 2291 bool last_idle_notification_gc_count_init_;
2292 2292
2293 int mark_sweeps_since_idle_round_started_; 2293 int mark_sweeps_since_idle_round_started_;
2294 int ms_count_at_last_idle_notification_; 2294 int ms_count_at_last_idle_notification_;
2295 unsigned int gc_count_at_last_idle_gc_; 2295 unsigned int gc_count_at_last_idle_gc_;
2296 int scavenges_since_last_idle_round_; 2296 int scavenges_since_last_idle_round_;
2297 2297
2298 // If the --deopt_every_n_garbage_collections flag is set to a positive value,
2299 // this variable holds the number of garbage collections since the last
2300 // deoptimization triggered by garbage collection.
2301 int gcs_since_last_deopt_;
2302
2298 #ifdef VERIFY_HEAP 2303 #ifdef VERIFY_HEAP
2299 int no_weak_embedded_maps_verification_scope_depth_; 2304 int no_weak_embedded_maps_verification_scope_depth_;
2300 #endif 2305 #endif
2301 2306
2302 static const int kMaxMarkSweepsInIdleRound = 7; 2307 static const int kMaxMarkSweepsInIdleRound = 7;
2303 static const int kIdleScavengeThreshold = 5; 2308 static const int kIdleScavengeThreshold = 5;
2304 2309
2305 // Shared state read by the scavenge collector and set by ScavengeObject. 2310 // Shared state read by the scavenge collector and set by ScavengeObject.
2306 PromotionQueue promotion_queue_; 2311 PromotionQueue promotion_queue_;
2307 2312
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
3015 AssertNoAllocation no_alloc; // i.e. no gc allowed. 3020 AssertNoAllocation no_alloc; // i.e. no gc allowed.
3016 3021
3017 private: 3022 private:
3018 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3023 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3019 }; 3024 };
3020 #endif // DEBUG 3025 #endif // DEBUG
3021 3026
3022 } } // namespace v8::internal 3027 } } // namespace v8::internal
3023 3028
3024 #endif // V8_HEAP_H_ 3029 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698