Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 198ab36c5090c7d17661cc8a395056b19ce99bec..f90662fc6c03e84109486bc83c794ae9ddb2493a 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4997,7 +4997,8 @@ class DeoptimizationInputData: public FixedArray { |
static const int kOsrAstIdIndex = 3; |
static const int kOsrPcOffsetIndex = 4; |
static const int kOptimizationIdIndex = 5; |
- static const int kFirstDeoptEntryIndex = 6; |
+ static const int kSharedFunctionInfoIndex = 6; |
+ static const int kFirstDeoptEntryIndex = 7; |
// Offsets of deopt entry elements relative to the start of the entry. |
static const int kAstIdRawOffset = 0; |
@@ -5021,6 +5022,7 @@ class DeoptimizationInputData: public FixedArray { |
DEFINE_ELEMENT_ACCESSORS(OsrAstId, Smi) |
DEFINE_ELEMENT_ACCESSORS(OsrPcOffset, Smi) |
DEFINE_ELEMENT_ACCESSORS(OptimizationId, Smi) |
+ DEFINE_ELEMENT_ACCESSORS(SharedFunctionInfo, Object) |
#undef DEFINE_ELEMENT_ACCESSORS |
@@ -6662,9 +6664,8 @@ class SharedFunctionInfo: public HeapObject { |
// Clear optimized code map. |
void ClearOptimizedCodeMap(); |
- // Removed code objects associated to the given native context from |
- // the optimized code map. |
- void EvictFromOptimizedCodeMap(Context* context, const char* reason); |
+ // Removed a specific optimized code object from the optimized code map. |
+ void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); |
// Trims the optimized code map after entries have been removed. |
void TrimOptimizedCodeMap(int shrink_by); |