]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - bytecode/GlobalResolveInfo.h
JavaScriptCore-1218.34.tar.gz
[apple/javascriptcore.git] / bytecode / GlobalResolveInfo.h
index 5576cfacdc61a1df89eedb4e8f75f083cf04ee8d..99292b7f3d13431843aae82e9a0ab316fd43cb29 100644 (file)
@@ -31,6 +31,8 @@
 namespace JSC {
 
 struct GlobalResolveInfo {
+    GlobalResolveInfo() { }
+    
     GlobalResolveInfo(unsigned bytecodeOffset)
         : offset(0)
         , bytecodeOffset(bytecodeOffset)
@@ -38,10 +40,15 @@ struct GlobalResolveInfo {
     }
     
     WriteBarrier<Structure> 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