Revision: 2258
Author:
bionic...@gmail.com
Date: Sat Dec 22 04:30:40 2012
Log: Updated deprecated pointer fields to new aligned versions.
http://code.google.com/p/v8-juice/source/detail?r=2258
Modified:
/convert/include/cvv8/ClassCreator.hpp
/convert/include/cvv8/detail/convert_core.hpp
=======================================
--- /convert/include/cvv8/ClassCreator.hpp Fri Jul 20 15:25:29 2012
+++ /convert/include/cvv8/ClassCreator.hpp Sat Dec 22 04:30:40 2012
@@ -604,7 +604,7 @@
v8::Local<v8::Object> const & obj( v8::Object::Cast(
*proto ) );
ext = (obj->InternalFieldCount() != InternalFields::Count)
? NULL
- : obj->GetPointerFromInternalField(
InternalFields::NativeIndex );
+ : obj->GetAlignedPointerFromInternalField(
InternalFields::NativeIndex );
// FIXME: if InternalFields::TypeIDIndex>=0 then also do a
check on that one.
/*
If !ext, there is no bound pointer. If (ext &&
@@ -775,9 +775,9 @@
self.MakeWeak( nobj, weak_dtor );
if( 0 <= InternalFields::TypeIDIndex )
{
- self->SetPointerInInternalField(
InternalFields::TypeIDIndex, (void *)TypeID::Value );
+ self->SetAlignedPointerInInternalField(
InternalFields::TypeIDIndex, (void *)TypeID::Value );
}
- self->SetPointerInInternalField(
InternalFields::NativeIndex, nobj )
+ self->SetAlignedPointerInInternalField(
InternalFields::NativeIndex, nobj )
/* We do this after the call to Wrap() just in case
the Wrap() impl
accidentally writes to this field. In that case we
end up
losing the data they stored there. So this is just
as evil as
=======================================
--- /convert/include/cvv8/detail/convert_core.hpp Thu Apr 12 11:24:20 2012
+++ /convert/include/cvv8/detail/convert_core.hpp Sat Dec 22 04:30:40 2012
@@ -855,7 +855,7 @@
v8::Local<v8::Object> const & obj( v8::Object::Cast(
*proto ) );
ext = (obj->InternalFieldCount() != InternalFieldCount)
? NULL
- : obj->GetPointerFromInternalField(
InternalFieldIndex );
+ : obj->GetAlignedPointerFromInternalField(
InternalFieldIndex );
if( ! ext )
{
if( !SearchPrototypeChain ) break;
@@ -988,9 +988,9 @@
v8::Local<v8::Object> const & obj( v8::Object::Cast(
*proto ) );
tid = (obj->InternalFieldCount() != InternalFieldCount)
? NULL
- : obj->GetPointerFromInternalField(
TypeIdFieldIndex );
+ : obj->GetAlignedPointerFromInternalField(
TypeIdFieldIndex );
ext = (tid == TypeID)
- ? obj->GetPointerFromInternalField(
ObjectFieldIndex )
+ ? obj->GetAlignedPointerFromInternalField(
ObjectFieldIndex )
: NULL;
if( ! ext )
{