diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 18:52:48 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-07-15 18:52:48 -0700 |
commit | dcd41ca864749b130b943c1e41eb993388f7e9d8 (patch) | |
tree | 8decfc4a73177c24c530a5428b57dcd159cfcf83 /deps/v8/src/objects-inl.h | |
parent | 078a48a97b5b2597443f867e904a4c7e7f061c42 (diff) | |
download | node-new-dcd41ca864749b130b943c1e41eb993388f7e9d8.tar.gz |
Upgrade V8 to 2.3.0
Diffstat (limited to 'deps/v8/src/objects-inl.h')
-rw-r--r-- | deps/v8/src/objects-inl.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/deps/v8/src/objects-inl.h b/deps/v8/src/objects-inl.h index 7b874d527c..101096d6c9 100644 --- a/deps/v8/src/objects-inl.h +++ b/deps/v8/src/objects-inl.h @@ -2511,7 +2511,6 @@ ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) #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 @@ void SharedFunctionInfo::set_code(Code* value, WriteBarrierMode mode) { } +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; |