Georgy Angelov
acf9be1873
Implement Function and Script
2015-04-04 18:23:23 +00:00
Georgy Angelov
52e52c1a04
Remove #Enter, #Exit and ::GetCurrent from C::Isolate
...
Also lock on some more places
2015-04-04 14:16:15 +00:00
Georgy Angelov
a926860150
Lock inside the C methods and store isolate with every ref
2015-04-04 14:04:57 +00:00
Georgy Angelov
d0f568cf18
Add strings and some conversion options for values
2015-03-21 09:51:17 +00:00
Georgy Angelov
d1e9088cf0
Port a ton of the original ext classes
...
You can now create a JS object from Ruby-land without segfaulting
2015-03-20 20:47:57 +00:00
Georgy Angelov
2fca33f9d0
Remove old ext files and spec & link to the new V8
...
The functionality will be added (that is, if I don't get bored) one thing at a time with the spec.
If you want to test, point the libv8 gem (in Gemfile) to its trunk branch & my changes at stormbreakerbg/libv8 @ trunk.
What works currently is getting V8 to initialize, say its version and create a new Isolate.
2015-03-18 21:57:39 +00:00
Charles Lowell
e0852e8963
make compatible with v8 3.15.11
2013-01-08 01:45:14 -06:00
Charles Lowell
8693cddf0a
add Context#dispose() for explicit teardown.
2012-06-19 04:32:58 -05:00
Charles Lowell
b9be3ec122
Ok C++, are you satisfied now?
2012-06-12 12:03:55 -05:00
Charles Lowell
bbef262f17
call JavaScript functions from Ruby.
2012-06-12 07:06:25 -05:00
Charles Lowell
a39114a6bd
create native contexts with configuration
2012-06-12 02:46:13 -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
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
7c62386365
remove whitespace
2012-05-09 14:46:07 -05:00
Charles Lowell
b9b15e8838
expose all v8:Context methods.
2012-05-09 14:46:07 -05:00
Charles Lowell
889918adae
Use more conventional means layout for .cc files
2012-05-09 14:46:06 -05:00
Charles Lowell
99d225c450
switch Context, Script to use ClassBuilder
2012-05-09 14:46:06 -05:00
Charles Lowell
451211fb72
support for basic evaluation.
2012-05-09 14:46:04 -05:00
Charles Lowell
b2e3057c5c
Outline reference data structures.
2012-05-09 14:46:04 -05:00
Charles Lowell
23f1654ca0
add basic template for compiling extension and hooking into jsapi_spec test harness.
2012-05-09 14:46:04 -05:00