| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index bbdefc14a5942122092dd2f82345b4b4d73a2bb6..3087f07e56efcfdb89fc63beb25cad0d965e439d 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -5357,6 +5357,8 @@ class Code: public HeapObject {
|
|
|
| BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset);
|
|
|
| + BailoutId OsrAstId();
|
| +
|
| #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge,
|
| enum Age {
|
| kNotExecutedCodeAge = -2,
|
| @@ -6537,7 +6539,7 @@ class SharedFunctionInfo: public HeapObject {
|
| // Returns index i of the entry with the specified context. At position
|
| // i - 1 is the context, position i the code, and i + 1 the literals array.
|
| // Returns -1 when no matching entry is found.
|
| - int SearchOptimizedCodeMap(Context* native_context);
|
| + int SearchOptimizedCodeMap(Context* native_context, BailoutId osr_ast_id);
|
|
|
| // Installs optimized code from the code map on the given closure. The
|
| // index has to be consistent with a search result as defined above.
|
| @@ -6555,11 +6557,13 @@ class SharedFunctionInfo: public HeapObject {
|
| // Add a new entry to the optimized code map.
|
| MUST_USE_RESULT MaybeObject* AddToOptimizedCodeMap(Context* native_context,
|
| Code* code,
|
| - FixedArray* literals);
|
| + FixedArray* literals,
|
| + BailoutId osr_ast_id);
|
| static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
|
| Handle<Context> native_context,
|
| Handle<Code> code,
|
| - Handle<FixedArray> literals);
|
| + Handle<FixedArray> literals,
|
| + BailoutId osr_ast_id);
|
|
|
| // Layout description of the optimized code map.
|
| static const int kNextMapIndex = 0;
|
|
|