X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..217a6308cd6a1dc049a0bb69263bd4c91f91c4d0:/bytecode/GlobalResolveInfo.h diff --git a/bytecode/GlobalResolveInfo.h b/bytecode/GlobalResolveInfo.h index 5576cfa..99292b7 100644 --- a/bytecode/GlobalResolveInfo.h +++ b/bytecode/GlobalResolveInfo.h @@ -31,6 +31,8 @@ namespace JSC { struct GlobalResolveInfo { + GlobalResolveInfo() { } + GlobalResolveInfo(unsigned bytecodeOffset) : offset(0) , bytecodeOffset(bytecodeOffset) @@ -38,10 +40,15 @@ struct GlobalResolveInfo { } WriteBarrier structure; - unsigned offset; - unsigned bytecodeOffset; + PropertyOffset offset; + unsigned bytecodeOffset; // Only valid in old JIT code. This means nothing in the DFG. }; +inline unsigned getGlobalResolveInfoBytecodeOffset(GlobalResolveInfo* globalResolveInfo) +{ + return globalResolveInfo->bytecodeOffset; +} + } // namespace JSC #endif // GlobalResolveInfo_h