File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -539,11 +539,15 @@ void Types::Load() {
539
539
kSharedFunctionInfoType =
540
540
LoadConstant (" type_SharedFunctionInfo__SHARED_FUNCTION_INFO_TYPE" );
541
541
kUncompiledDataWithoutPreParsedScopeType = LoadConstant (
542
- " type_UncompiledDataWithoutPreParsedScope__UNCOMPILED_DATA_WITHOUT_PRE_"
543
- " PARSED_SCOPE_TYPE" );
542
+ {" type_UncompiledDataWithoutPreParsedScope__UNCOMPILED_DATA_WITHOUT_PRE_"
543
+ " PARSED_SCOPE_TYPE" ,
544
+ " type_UncompiledDataWithoutPreparseData__UNCOMPILED_DATA_WITHOUT_"
545
+ " PREPARSE_DATA_TYPE" });
544
546
kUncompiledDataWithPreParsedScopeType = LoadConstant (
545
- " type_UncompiledDataWithPreParsedScope__UNCOMPILED_DATA_WITH_PRE_PARSED_"
546
- " SCOPE_TYPE" );
547
+ {" type_UncompiledDataWithPreParsedScope__UNCOMPILED_DATA_WITH_PRE_PARSED_"
548
+ " SCOPE_TYPE" ,
549
+ " type_UncompiledDataWithPreparseData__UNCOMPILED_DATA_WITH_"
550
+ " PREPARSE_DATA_TYPE" });
547
551
kScriptType = LoadConstant (" type_Script__SCRIPT_TYPE" );
548
552
kScopeInfoType = LoadConstant (" type_ScopeInfo__SCOPE_INFO_TYPE" );
549
553
kSymbolType = LoadConstant (" type_Symbol__SYMBOL_TYPE" );
Original file line number Diff line number Diff line change @@ -524,8 +524,8 @@ class Types : public Module {
524
524
int64_t kJSRegExpType ;
525
525
int64_t kJSDateType ;
526
526
int64_t kSharedFunctionInfoType ;
527
- int64_t kUncompiledDataWithoutPreParsedScopeType ;
528
- int64_t kUncompiledDataWithPreParsedScopeType ;
527
+ Constant< int64_t > kUncompiledDataWithoutPreParsedScopeType ;
528
+ Constant< int64_t > kUncompiledDataWithPreParsedScopeType ;
529
529
int64_t kScriptType ;
530
530
int64_t kScopeInfoType ;
531
531
int64_t kSymbolType ;
Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ inline bool Value::IsUncompiledData(Error& err) {
144
144
int64_t type = heap_object.GetType (err);
145
145
if (err.Fail ()) return false ;
146
146
147
- return type == v8 ()->types ()->kUncompiledDataWithoutPreParsedScopeType ||
148
- type == v8 ()->types ()->kUncompiledDataWithPreParsedScopeType ;
147
+ return type == * v8 ()->types ()->kUncompiledDataWithoutPreParsedScopeType ||
148
+ type == * v8 ()->types ()->kUncompiledDataWithPreParsedScopeType ;
149
149
}
150
150
151
151
You can’t perform that action at this time.
0 commit comments