Index: src/contexts.h |
diff --git a/src/contexts.h b/src/contexts.h |
index 88c3cd981c94e15e58dffc3c1b609d155cee50df..189c215e63904b76aea1dd9493397c2f44f21d2e 100644 |
--- a/src/contexts.h |
+++ b/src/contexts.h |
@@ -337,8 +337,10 @@ class Context: public FixedArray { |
// Properties from here are treated as weak references by the full GC. |
// Scavenge treats them as strong references. |
OPTIMIZED_FUNCTIONS_LIST, // Weak. |
- MAP_CACHE_INDEX, // Weak. |
- NEXT_CONTEXT_LINK, // Weak. |
+ OPTIMIZED_CODE_LIST, // Weak. |
+ DEOPTIMIZED_CODE_LIST, // Weak. |
+ MAP_CACHE_INDEX, // Weak. |
+ NEXT_CONTEXT_LINK, // Weak. |
// Total number of slots. |
NATIVE_CONTEXT_SLOTS, |
@@ -428,11 +430,19 @@ class Context: public FixedArray { |
// Mark the native context with out of memory. |
inline void mark_out_of_memory(); |
- // A native context hold a list of all functions which have been optimized. |
+ // A native context holds a list of all functions with optimized code. |
void AddOptimizedFunction(JSFunction* function); |
void RemoveOptimizedFunction(JSFunction* function); |
+ void SetOptimizedFunctionsListHead(Object* head); |
Object* OptimizedFunctionsListHead(); |
- void ClearOptimizedFunctions(); |
+ |
+ // The native context also stores a list of all optimized code and a |
+ // list of all deoptimized code, which are needed by the deoptimizer. |
+ void AddOptimizedCode(Code* code); |
+ void SetOptimizedCodeListHead(Object* head); |
+ Object* OptimizedCodeListHead(); |
+ void SetDeoptimizedCodeListHead(Object* head); |
+ Object* DeoptimizedCodeListHead(); |
Handle<Object> ErrorMessageForCodeGenerationFromStrings(); |