0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 01:29:19 -05:00
Commit graph

55 commits

Author SHA1 Message Date
Ry Dahl
822b6e7025
Add Object::set (#138) 2019-12-26 14:38:16 -05:00
Bert Belder
76a480e6ff
Add ArrayBuffer::get_backing_store() and new_with_backing_store() (#135) 2019-12-26 18:06:43 +01:00
Ry Dahl
ce38f674f7
Support dynamic import (#136) 2019-12-26 10:45:55 -05:00
Andy Finch
6cdb55ed62 add v8::Uint8Array (#133) 2019-12-25 20:37:25 -05:00
Ry Dahl
877c22b075
Move new_default_allocator to root namespace (#132)
And add Isolate::set_data, Isolate::get_data, Isolate::get_number_of_data_slots
2019-12-25 10:56:27 -05:00
Ry Dahl
ce1f74221c
Fix StartupData memory leak (#131) 2019-12-25 08:14:55 -05:00
Bert Belder
ae4b48eb22
Get rid of HandleScope closure, add CallbackScope (#119) 2019-12-25 00:31:36 +01:00
Ry Dahl
57d13f7622
support for import.meta (#128) 2019-12-24 16:40:41 -05:00
Ry Dahl
d65c604f3a
Add Object::create_data_property, Object::get, Value::is_array, Value::is_object, Value::is_function (#129) 2019-12-24 16:10:40 -05:00
Bartek Iwańczuk
1507a897de first pass at snapshots (#122)
Creating a snapshot leaks memory. We will address this in future work.
2019-12-24 08:03:32 -05:00
Andy Finch
37a13ae18c add v8::ArrayBufferView (#101) 2019-12-24 05:50:30 -05:00
Ry Dahl
b97abb17b9
default options for v8::script_compiler::compile_module (#125)
And other clean ups
2019-12-23 20:23:55 -05:00
Ry Dahl
51737506dd
make InstantiateModule work (#124) 2019-12-23 18:09:03 -05:00
Ry Dahl
7cb6623488
Add Isolate::throw_exception (#123) 2019-12-23 08:16:01 -05:00
Ry Dahl
1d027f08c5
Add Value::strict_equals and Value::same_value (#121) 2019-12-23 07:32:45 -05:00
Ry Dahl
3ec3b07638
first pass implementation for v8::Module (#120)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-12-23 07:12:52 -05:00
Bert Belder
6d30c77116
Set up test harness for verifying safety constraints (#117) 2019-12-22 20:02:25 +01:00
Bert Belder
71d74205c2
Run 'cargo fmt' and add it to CI (#116) 2019-12-22 17:04:33 +01:00
Bartek Iwańczuk
25c4f7f4d0
add v8::EscapableHandleScope (#113) 2019-12-22 15:05:39 +01:00
Bert Belder
c107eb871f
Add global (a.k.a Persistent) handles (#112) 2019-12-22 01:30:22 +01:00
Ry Dahl
f36e74a648
First pass at BackingStore (#108) 2019-12-21 11:05:51 -05:00
Ry Dahl
153018b41b
Add ArrayBuffer, move ArrayBuffer::Allocator to root namespace (#106) 2019-12-21 08:50:59 -05:00
Ry Dahl
99baef0169
Add PrimitiveArray and ScriptOrModule (#105) 2019-12-21 06:38:26 -05:00
Bert Belder
196b5f60e4
Fix more mutability and lifetime issues (#103) 2019-12-21 06:11:12 +01:00
Bert Belder
6124554651
Remove 'type' param from v8::String::new() convenience function (#99) 2019-12-21 03:23:56 +01:00
Bert Belder
f839aa221a
Add TryCatch (#97) 2019-12-21 02:12:11 +01:00
Bert Belder
331582561b
Add Local lifetimes back (#95) 2019-12-21 02:11:54 +01:00
Ry Dahl
bbfaacfe56
Add v8::ScriptCompiler::compile_module (#96) 2019-12-20 14:54:20 -05:00
Bartek Iwańczuk
85229bdd8a add v8::PropertyCallbackInfo (#68) 2019-12-20 18:16:44 +01:00
Ry Dahl
e89a968ff2
add more docs and clean up exception, json modules (#92) 2019-12-20 08:47:20 -05:00
Ry Dahl
68742be011
Remove lifetimes from Local, HandleScope, Locker (#90)
add v8_str
2019-12-19 23:36:29 -05:00
Ry Dahl
b610e7cda9
Add v8::Isolate::add_message_listener (#89) 2019-12-19 21:34:07 -05:00
Ryan Dahl
887af28790 Remove LockedIsolate 2019-12-19 20:32:47 -05:00
Ryan Dahl
71140b4cc4 Change HandleScope::enter to take &Isolate, make v8::Locker into opaque blob 2019-12-19 20:32:47 -05:00
Ry Dahl
11ba352065
Rename CxxIsolate to Isolate and Isolate to OwnedIsolate (#85) 2019-12-19 19:15:52 -05:00
Bartek Iwańczuk
cb0d2e3bec
add v8::PromiseRejectMessage (#65) 2019-12-19 14:13:33 +01:00
Ryan Dahl
24ca978b33 Add v8::Isolate::set_capture_stack_trace_for_uncaught_exceptions 2019-12-18 17:40:45 -05:00
Bert Belder
150c27e4c8
Represent v8::Maybe<bool> in rust as Option<bool> (#73) 2019-12-18 18:02:46 +01:00
Ry Dahl
a2f9b6bc11
Add v8::ScriptOrigin (#46) 2019-12-18 05:46:36 -05:00
Bartek Iwańczuk
48f8a000cf add implementation for v8::ReturnValue (#67) 2019-12-17 19:19:40 +01:00
Andy Finch
f37085c370 automatically convert from Local<T> to Local<Value> (#61) 2019-12-14 10:40:54 +08:00
Bartek Iwańczuk
a6caa5a42d add v8::Promise (#56) 2019-12-14 09:18:30 +08:00
Bartek Iwańczuk
2cfb80e174 Add v8::Function (#57) 2019-12-11 11:43:22 +08:00
Bartek Iwańczuk
b698e2fce3 add v8::Object (#55) 2019-12-10 08:14:07 +08:00
Bartek Iwańczuk
41e1f14ab5 add v8::JSON (#54) 2019-12-10 06:11:31 +08:00
Bartek Iwańczuk
e6e35a57e9 add v8::Exception (#50) 2019-12-09 02:26:58 +01:00
Ryan Dahl
7a233e277e Add Value::{is_undefined, is_null, is_null_or_undefined} 2019-12-06 10:43:22 -05:00
Ryan Dahl
f9a29cf56c Add primitive constructors null, undefined, true, false 2019-12-06 10:43:22 -05:00
Ry Dahl
1835207186
Fix script_compile_and_run by adding context.exit() (#40) 2019-12-05 12:55:46 -05:00
Bartek Iwańczuk
91b8a70fd2 Add String::length method (#39) 2019-12-05 18:28:20 +01:00