Граф коммитов

72 Коммитов

Автор SHA1 Сообщение Дата
Yulong Wang 4604bc8718
Update function group `zone.broadcast` (#201)
* New 'broadcast' function group Proposal

* update function group `zone.broadcast`

* Delete temp file

* Trival fixes and comments resolve
2018-04-03 15:38:29 -07:00
Yulong Wang 3fb47871d9
Merge file src/utils/debug.h to inc/napa/log.h (#213) 2018-04-03 13:55:31 -07:00
Yulong Wang ab54a359fb Remove trailing semi-colon in macro definitions (#127)
* Remove ';' in macro definitions

* Update macro NAPA_DECLARE_PERSISTENT_CONSTRUCTOR to function-call style

* Fix build break in lock-wrap.cpp
2018-01-05 13:10:57 -08:00
Yulong Wang 5e74926738 Fix string encoding in Napa (#153)
The following components are supporting unicode string now.
napa.store APIs
FunctionSpec that used in zone.execute()
Fix: #144
2017-12-28 17:20:28 -08:00
Allen (Yongshuang) Wang 1bf7fed967 transport JavaScript standard builtin objects (#151)
* transport-fallback one pager

* refine the design doc

* fix typos

* prototype of v8-transport-helper

* builtin types transporter

* resolve some comments

* Update transport-js-builtins.md

* Update transport-js-builtins.md

* resolve comments

* add NAPA_API for  transportutils methods

* in order to retrieve v8::Value(De)Serilaizer::Delegate symbols correctly, make SerializeValue / DesrializeValue non-static

* Disable rtti for compatibility with node and v8

* make v8-extensions a static lib to use -fno-rtti

* restrict v8-extensions lib building by v8 version

* add -fPIC to build v8-extensions for linux

* include stdlib.h explicitly for malloc/free/realloc

* .cc to .cpp under src/v8-extensions
2017-12-19 20:43:38 -08:00
Yulong Wang 2fbbeac69e fix macro LOG when NAPA_LOG_DISABLED is set (#161) 2017-12-14 19:15:20 -08:00
shah-asaduzzaman bc5b927eaa removed additional commas in unordered-set template definition (#135) 2017-11-22 07:02:17 -08:00
Yulong Wang 3fe27f417b Fix build warning: ISO C++ forbids converting a string constant to ‘char*’ (#112) 2017-11-02 23:44:14 -07:00
Daiyi Peng dee4ed27fa Release candidate for 0.1.0 (#23)
1. Linux and Mac support
2. Fixed memory leak on TransportContextWrap and CallContextWrap.options
3. Fixed race condition in StoreWrap
4. Added examples/tutorial
5. Documentation tuning
6. Continuous integration with Travis CI
2017-08-03 16:14:30 -07:00
Daiyi Peng f75cefa6d2 Merged PR 327797: Support Mac
Support Mac
2017-07-19 17:00:55 -07:00
Daiyi Peng fbd5569ee2 Merged PR 327505: Merge dev/dapeng/license to master 2017-07-19 00:29:19 +00:00
Daiyi Peng f177191ffe Merged PR 323615: Merge dev/dapeng/fix_linux to master
Now zone.broadcast/execute can run in linux.

Remaining issues in mocha tests:
1) Random failure for __napa_zone_call__ not found.
2) TS transcompiled code for await/async will make mocha stuck.
2017-07-18 22:30:45 +00:00
Yulong Wang 8fe1039a59 Merged PR 317009: Add NAPA debug logs
Add NAPA debug logs
2017-07-07 22:26:27 +00:00
Yulong Wang 97d5f2be82 Merged PR 311450: Merge dev/yulongw/fix-linux-build-break to master
Fix build break in Linux.

(Currently link will failed because we do not have the platform.cpp for linux. Will add in future change.)
2017-07-06 21:27:01 +00:00
Asi Bross a665942332 Merged PR 316411: enable unit tests in npm
enable unit tests in npm
2017-07-06 21:14:44 +00:00
Asi Bross a0c478b8c7 Merge latest changes from napa/vanilla 2017-06-28 14:53:19 -07:00
Daiyi Peng c7373d8342 Merged PR 297335: Replace timeout with ExecuteOptions in zone.execute.
Replace timeout with ExecuteOptions in zone.execute.
2017-06-16 21:25:47 +00:00
Asi Bross f6026033b5 Merged PR 282183: Add support for logging providers
Add support for logging providers
2017-06-05 17:34:45 +00:00
Sunghoon Choi f92c2e4b3f Merged PR 284832: Add V8 headers into napajs package and update node_version.h 2017-06-05 17:22:14 +00:00
Sunghoon Choi 9e9037c1da Merged PR 278947: Using node from nuget package
node.exe and v8 libraries come from the same nuget package. I applied this into only vanilla and taster not to break the current indexserve.
2017-05-26 22:55:41 +00:00
Daiyi Peng f40d445fdf Merged PR 278250: 1) SharedWrap => ShareableWrap and SharedPtrWrap.
1) SharedWrap => ShareableWrap and SharedPtrWrap.
2) SimpleAllocatorDebuggerWrap => AllocatorDebuggerWrap
2017-05-26 17:55:07 +00:00
Daiyi Peng f8551f93b0 Merged PR 277951: Remove legacy object-transporter.
Remove legacy object-transporter.
2017-05-26 00:11:45 +00:00
Daiyi Peng 7cc3a722bc Merged PR 276180: Merge dev/dapeng/refine_transport to master
This change fixes transport.register on addon Init, with a few tuning and adding tests.

Detailed changes are:
1) Support module.require in Napa.
2) Support C++ accessibility to napa binding.
3) Remove non-transportable, as any object is not transportable is non-transportable.
4) Refine Store API.
5) Add tests for memory and transport.
2017-05-25 21:04:35 +00:00
Sunghoon Choi 5d8958feff Merged PR 272334: Napa.dll linking with V8 library statically
This makes us export only one napa.dll, i.e. we don't need to publish multiple v8 related dlls. It's using v8 libraries built from node.js sources. There are two big reasons why node.js is the base, not v8. One is that NAN is based on node, not no v8. The other is that node.js building procedure is much simpler than v8. (it's much complicated to make v8 static library with dynamic runtime and with exporting all APIs.).

I described how to build v8 libraries from node.js sources at vanilla\deps\README.md and published Napa.V8.Library into Nuget repository.
2017-05-23 05:39:19 +00:00
Asi Bross 30fa24e01d Merged PR 268036: Remove initialization from bootstrap file feature
Remove initialization from bootstrap file feature
2017-05-18 17:06:03 +00:00
Asi Bross b853614d49 Merged PR 264966: Integrate napa addon with napa.dll
Integrate napa addon with napa.dll
2017-05-12 20:06:44 +00:00
Daiyi Peng 0e9fc19df4 Merged PR 257563: Store API
Store API
2017-05-08 21:54:23 +00:00
Asi Bross e72a89f0a1 Merged PR 255847: Zone interface changes
Zone interface changes
2017-05-03 23:23:50 +00:00
Sunghoon Choi ebbfc640a6 Merged PR 253472: Support Async at Napa.
Napa has two APIs to support async manner, PostAsyncWork and DoAsyncWork.
2017-05-02 20:32:11 +00:00
Daiyi Peng beda33f951 Merged PR 252161: 1. Enable generation of d.ts file. (winery needs this)
1. Enable generation of d.ts file. (winery needs this)
2. For memory/transport folder, decouple from dependency on addon.
3. Call transport.Register in C++ instead of additional JS call.
2017-05-01 03:51:16 +00:00
Asi Bross feaeddcd67 Merged PR 251000: Make zone.execute work e2e
Make zone.execute work e2e
2017-04-27 23:38:11 +00:00
Daiyi Peng d0a9091ed7 Merged PR 250903: Refactory v8_helpers and module common.
Refactory v8_helpers and module common.
2017-04-27 23:09:16 +00:00
Asi Bross 93f19e06ca Merged PR 249141: Use transport context in execute
Use transport context in execute
2017-04-26 21:13:41 +00:00
Daiyi Peng 2cb740d3c4 Merged PR 247856: Message formatting in CHECK_ARGS/JS_ENSURE.
Message formatting in CHECK_ARGS/JS_ENSURE.
2017-04-26 18:29:14 +00:00
Sunghoon Choi d872f569ed Merged PR 243812: Napa supports async.
Napa supports async.
2017-04-25 22:19:56 +00:00
Daiyi Peng dc8691044f Merged PR 245145: Merge dev/dapeng/allocator_support to master 2017-04-25 00:11:40 +00:00
Asi Bross 34201f1ee3 Merged PR 243993: Merge zone_changes to master 2017-04-20 21:17:22 +00:00
Sunghoon Choi e3cc462a48 Merged PR 236850: Add more APIs into core modules.
I borrowed assert.js and util.js from node.js.
2017-04-17 17:27:11 +00:00
Asi Bross 9d7f533b89 Merged PR 228477: Add support for running a function on all isolates
Add support for running a function on all isolates
2017-04-04 22:26:17 +00:00
Sunghoon Choi 8038a45f8e Merged PR 217222: Refactor module loader.
- Module loader handle only built-in modules.
- All built-in modules move under core module since they also can be loaded by require().
- Each module type has its own module loader class.
- Doesn't support require('module', 'javascript string') extension any more.
- Clean up unit tests using incompatible node.js require.
2017-03-23 21:33:32 +00:00
Sunghoon Choi 74e838d035 Merged PR 211511: Module's package.json.
Module resolver now returns more resolution information, such as extension, package.json path.
2017-03-16 23:55:22 +00:00
Sunghoon Choi 2383840d93 Merged PR 210119: Module resolver class.
Module resolver class to resolve napa module path.
2017-03-16 00:35:15 +00:00
Asi Bross 57f697b6cd Merged PR 206116: Add logger module and napajs module.
Add logger module and napajs module.
2017-03-11 01:24:09 +00:00
Sunghoon Choi d2e6eea12e Merged PR 206214: [Backlog] Move module related headers into inc/napa/module.
Move module related headers into inc/napa/module.
2017-03-11 01:04:35 +00:00
Sunghoon Choi a1d8f02af8 Merged PR 202377: Migrate module loader into vanilla napa.
Migrate module loader into vanilla napa.
2017-03-09 22:40:04 +00:00
Asi Bross eba8b1ef8e Merged PR 199269: Merge dev/asib/cleanup to master 2017-03-03 23:02:57 +00:00
Sunghoon Choi 69789aa6c2 Merged PR 193423: napa-shared-depot module - enables native objects to be shared across isolates 2017-03-03 18:18:48 +00:00
Asi Bross 4203792489 Merged PR 197237: Added global store and cleaned TODOs
Added global store and cleaned TODOs
2017-03-02 18:00:43 +00:00
Asi Bross 2e57b14b5f Merged PR 196047: Add metric provider implementation for autopilot
Add metric provider implementation for autopilot
2017-03-01 21:58:50 +00:00
Asi Bross 40e124da1e Merged PR 193266: Added napa autopilot module
Added napa autopilot module
2017-02-28 21:53:56 +00:00