Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 5059) |
+++ src/objects-inl.h (working copy) |
@@ -2511,7 +2511,6 @@ |
#endif |
ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
-ACCESSORS(SharedFunctionInfo, scope_info, Object, kScopeInfoOffset) |
ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
ACCESSORS(SharedFunctionInfo, instance_class_name, Object, |
kInstanceClassNameOffset) |
@@ -2648,6 +2647,19 @@ |
} |
+SerializedScopeInfo* SharedFunctionInfo::scope_info() { |
+ return reinterpret_cast<SerializedScopeInfo*>( |
+ READ_FIELD(this, kScopeInfoOffset)); |
+} |
+ |
+ |
+void SharedFunctionInfo::set_scope_info(SerializedScopeInfo* value, |
+ WriteBarrierMode mode) { |
+ WRITE_FIELD(this, kScopeInfoOffset, reinterpret_cast<Object*>(value)); |
+ CONDITIONAL_WRITE_BARRIER(this, kScopeInfoOffset, mode); |
+} |
+ |
+ |
bool SharedFunctionInfo::is_compiled() { |
// TODO(1242782): Create a code kind for uncompiled code. |
return code()->kind() != Code::STUB; |