| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index f09d58fc5dc53dc5a3b99abb8fd76e944373f8a9..27af40145de095ed06627ac2d8597ae55aefb3cb 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -6535,7 +6535,9 @@ class SharedFunctionInfo: public HeapObject {
|
|
|
| // Installs optimized code from the code map on the given closure. The
|
| // index has to be consistent with a search result as defined above.
|
| - void InstallFromOptimizedCodeMap(JSFunction* function, int index);
|
| + FixedArray* GetLiteralsFromOptimizedCodeMap(int index);
|
| +
|
| + Code* GetCodeFromOptimizedCodeMap(int index);
|
|
|
| // Clear optimized code map.
|
| void ClearOptimizedCodeMap();
|
| @@ -6919,12 +6921,6 @@ class SharedFunctionInfo: public HeapObject {
|
|
|
| void ResetForNewContext(int new_ic_age);
|
|
|
| - // Helper to compile the shared code. Returns true on success, false on
|
| - // failure (e.g., stack overflow during compilation). This is only used by
|
| - // the debugger, it is not possible to compile without a context otherwise.
|
| - static bool CompileLazy(Handle<SharedFunctionInfo> shared,
|
| - ClearExceptionFlag flag);
|
| -
|
| // Casting.
|
| static inline SharedFunctionInfo* cast(Object* obj);
|
|
|
| @@ -7255,29 +7251,20 @@ class JSFunction: public JSObject {
|
|
|
| // Mark this function for lazy recompilation. The function will be
|
| // recompiled the next time it is executed.
|
| - void MarkForLazyRecompilation();
|
| - void MarkForConcurrentRecompilation();
|
| - void MarkInRecompileQueue();
|
| -
|
| - // Helpers to compile this function. Returns true on success, false on
|
| - // failure (e.g., stack overflow during compilation).
|
| - static bool EnsureCompiled(Handle<JSFunction> function,
|
| - ClearExceptionFlag flag);
|
| - static bool CompileLazy(Handle<JSFunction> function,
|
| - ClearExceptionFlag flag);
|
| - static Handle<Code> CompileOsr(Handle<JSFunction> function,
|
| - BailoutId osr_ast_id,
|
| - ClearExceptionFlag flag);
|
| + void MarkForCompileOptimized();
|
| + void MarkForCompileOptimizedConcurrent();
|
| + void MarkInOptimizationQueue();
|
| +
|
| static bool CompileOptimized(Handle<JSFunction> function,
|
| ClearExceptionFlag flag);
|
|
|
| // Tells whether or not the function is already marked for lazy
|
| // recompilation.
|
| - inline bool IsMarkedForLazyRecompilation();
|
| - inline bool IsMarkedForConcurrentRecompilation();
|
| + inline bool IsMarkedForCompileOptimized();
|
| + inline bool IsMarkedForCompileOptimizedConcurrent();
|
|
|
| // Tells whether or not the function is on the concurrent recompilation queue.
|
| - inline bool IsInRecompileQueue();
|
| + inline bool IsInOptimizationQueue();
|
|
|
| // [literals_or_bindings]: Fixed array holding either
|
| // the materialized literals or the bindings of a bound function.
|
|
|