| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 56f6b70a6565444f4000e741e281cdd16b701851..3a601adf32bdf3a40ca3bfba6b69fabb58402873 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -7083,7 +7083,7 @@ class Script: public Struct {
|
|
|
| // [shared_function_infos]: weak fixed array containing all shared
|
| // function infos created from this script.
|
| - DECL_ACCESSORS(shared_function_infos, Object)
|
| + DECL_ACCESSORS(shared_function_infos, FixedArray)
|
|
|
| // [flags]: Holds an exciting bitfield.
|
| DECL_INT_ACCESSORS(flags)
|
| @@ -7702,9 +7702,6 @@ class SharedFunctionInfo: public HeapObject {
|
| // Indicates that the the shared function info is deserialized from cache.
|
| DECL_BOOLEAN_ACCESSORS(deserialized)
|
|
|
| - // Indicates that the the shared function info has never been compiled before.
|
| - DECL_BOOLEAN_ACCESSORS(never_compiled)
|
| -
|
| // Whether this function was created from a FunctionDeclaration.
|
| DECL_BOOLEAN_ACCESSORS(is_declaration)
|
|
|
| @@ -7799,10 +7796,12 @@ class SharedFunctionInfo: public HeapObject {
|
| SharedFunctionInfo* Next();
|
|
|
| private:
|
| - bool NextScript();
|
| + void NextScript();
|
|
|
| Script::Iterator script_iterator_;
|
| WeakFixedArray::Iterator sfi_iterator_;
|
| + Script* current_script_;
|
| + int index_;
|
| DisallowHeapAllocation no_gc_;
|
| DISALLOW_COPY_AND_ASSIGN(Iterator);
|
| };
|
| @@ -7964,7 +7963,7 @@ class SharedFunctionInfo: public HeapObject {
|
| kAllowLazyCompilation,
|
| kMarkedForTierUp,
|
| kOptimizationDisabled,
|
| - kNeverCompiled,
|
| + kIsClassFieldInitializer,
|
| kNative,
|
| kStrictModeFunction,
|
| kUsesArguments,
|
| @@ -7986,7 +7985,6 @@ class SharedFunctionInfo: public HeapObject {
|
| kIsDeclaration,
|
| kIsAsmWasmBroken,
|
| kRequiresClassFieldInit,
|
| - kIsClassFieldInitializer,
|
| kCompilerHintsCount, // Pseudo entry
|
| };
|
| // kFunctionKind has to be byte-aligned
|
|
|