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

Unified Diff: src/objects.h

Issue 23803007: Fix wraparound of deoptimization count in shared function info. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index f001feb12a7652d1e329c6d204e2e15fde2ab6fe..83812fd64dfe7ab6ef88940fb310baec24c15124 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1223,6 +1223,7 @@ class MaybeObject BASE_EMBEDDED {
V(kOperandIsNotSmi, "Operand is not smi") \
V(kOperandNotANumber, "Operand not a number") \
V(kOptimizedTooManyTimes, "optimized too many times") \
+ V(kDeoptimizedTooManyTimes, "deoptimized too many times") \
V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \
"Out of virtual registers while trying to allocate temp register") \
V(kParseScopeError, "parse/scope error") \
@@ -6577,6 +6578,7 @@ class SharedFunctionInfo: public HeapObject {
inline void set_deopt_count(int value);
inline int deopt_count();
inline void increment_deopt_count();
+ inline bool too_many_deopts();
// Number of time we tried to re-enable optimization after it
// was disabled due to high number of deoptimizations.
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698