Charles Lowell
eb87ceb340
don't use rb_block_call() since it is not in rbx
2012-06-20 04:53:47 -05:00
Charles Lowell
7f967d0c5e
avoid race condition in object back reference.
2012-06-20 03:17:34 -05:00
Charles Lowell
be963bbc95
implement exception handling.
2012-06-14 22:34:38 -05:00
Charles Lowell
bbef262f17
call JavaScript functions from Ruby.
2012-06-12 07:06:25 -05:00
Charles Lowell
0d29c7fc15
keep a back reference to object wrappers
2012-06-08 14:14:38 -05:00
Charles Lowell
e90ef50b0d
remove Int equivalence class
2012-05-22 23:06:21 -05:00
Charles Lowell
7f659ef385
support for accessors, equivalence classes
2012-05-22 12:12:08 -05:00
Charles Lowell
72068651f9
eschew heap allocated accessor callbacks
...
This changes the accessor code to push as much
object allocation onto Ruby as possible. Instead
the C++ layer acts strictly as glue using stack
allocated variables to convert v8 value to ruby
objects at the moment it passes them off to Ruby.
2012-05-21 16:36:19 -05:00
Charles Lowell
f0db59d723
support for v8::Function
2012-05-18 11:56:15 -05:00
Charles Lowell
d3c9319357
Polymorphically thunk array values.
2012-05-18 09:48:46 -05:00
Charles Lowell
02586451aa
We have an array definition now.
2012-05-17 22:05:41 -05:00
Charles Lowell
77148914ab
(almost) fully wrap the object interface
2012-05-17 10:30:37 -05:00
Charles Lowell
72e72ada55
Let enums accept a default value
2012-05-16 23:11:23 -05:00
Charles Lowell
899a64fb8c
simplify type conversion
...
* add a UInt32() helper function
* add a Void() macro to DRY up nil returns
* implement the `*` operator on Ref objects to get
the object referred to.
2012-05-16 22:25:31 -05:00
Charles Lowell
c22dc64910
remove global thunking function Convert().
2012-05-15 16:49:01 -05:00
Charles Lowell
e4184c97f9
thunk down values and objects
2012-05-15 16:37:22 -05:00
Charles Lowell
e21bedf3a9
towards equivalence classes in type conversion
2012-05-15 16:24:58 -05:00
Charles Lowell
5a35c2bcd5
further simplify reference construction.
...
References no longer require an explicit call to
::convert(). They can be created in a call to the
constructor.
2012-05-15 12:23:06 -05:00
Charles Lowell
356b47a86f
massively simplify reference creation.
...
make the template class define the RubyClass for
a given reference class. That way, it can define
the wrapping logic.
2012-05-15 11:46:14 -05:00
Charles Lowell
a2cf25b00f
implement C::Object#SetAccessor()
2012-05-09 14:46:07 -05:00
Charles Lowell
26e895bb8d
expose objects in the lamest way possible.
2012-05-09 14:46:07 -05:00
Charles Lowell
0800d82988
Create HandleScopes, Externals from Ruby.
2012-05-09 14:46:07 -05:00
Charles Lowell
28475caab3
add stub for Object::SetAccessor()
2012-05-09 14:46:07 -05:00
Charles Lowell
dd12601032
add AccessControl Enum
2012-05-09 14:46:06 -05:00
Charles Lowell
3d4d4cc38c
stub more Object methods.
2012-05-09 14:46:06 -05:00
Charles Lowell
a39c147f44
add stub for v8::Object
2012-05-09 14:46:06 -05:00