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

146 Коммитов

Автор SHA1 Сообщение Дата
Vladimir Morozov 91a438eced
Implement JSI on top of N-API (#53)
* Implement JSI on top of N-API

* Replace StringView with string_view

* Publish NAPI and NAPI-JSI header in the Nuget
2021-04-27 07:34:34 -07:00
Vladimir Morozov 3f56770a5c
Implement N-API for V8 (#51)
* Original Node.js files

* Implement N-API for V8 with unit tests

* Update Node.js files, add more tests, and add comments

* Address PR feedback

* Format code with 120 columns per row
2021-04-15 20:51:21 +00:00
Vladimir Morozov d12fb54ea9
Set clang format ColumnLimit to 120 (#52) 2021-04-15 12:37:58 -07:00
Anandraj d084d790da
Inspector improvements (#49) 2021-04-01 21:05:44 -07:00
rgerd 7005c321e5
Implement ArrayBuffer runtime methods (#47)
* Implement ArrayBuffer runtime methods

* Bump version
2021-03-26 03:12:53 +00:00
tudorms 19aa1f4b67
Update to V8 9.0 (#45) 2021-03-19 17:38:54 +00:00
Anandraj 547242bf04
More tracing and instrumentation, Inspector fixes, and enabling them by default (#44)
* (1) Robust tracing in V8Runtime and Inspector (2) Inspector fixes including sampling profiler

* Enabling inspector, profiles, diagnostics by default

* Fixing build and turn enableInspector flag to be of by default

* Incorporating feedbacks and fixing build

* Missed adding tracing.cpp into build definition
2021-03-13 00:13:16 -08:00
tudorms 9923604f20
Replace custom patch with cherry-pick from V8 9.0 / master (#42) 2021-02-05 07:51:54 +00:00
tudorms db6ade1d38
Update V8 to 8.9 (#40) 2021-01-19 16:57:40 +00:00
tudorms 88de1d4d2f
Include PDBs in the win32 NuGet to match prior behavior (#38) 2020-12-02 18:07:48 +00:00
Julio César Rocha bf61bc99f1
Bump version to 0.64.6 (#37) 2020-12-01 08:02:53 +00:00
Julio César Rocha 8d509fa72c
Fix nuget pack (#36)
* Copy NUSPEC to output directory
2020-11-12 18:08:30 -08:00
tudorms 8422a13a57
Fix arm64 build (#35)
* Update V8 to v8.7

* Fix arm64 build
2020-11-12 07:59:15 +00:00
tudorms b66df1e949
Update V8 to v8.7 (#34) 2020-11-11 08:05:30 +00:00
Julio César Rocha 3fea671e1a
Further simplify CI workflow (#33)
* Removed old PR pipelines

* Parameterize NUSPEC

* Use PowerShell [versin] type.

* Rename PdbExtension to NuGetExcludeExtensions
2020-10-30 16:55:43 -07:00
Julio C. Rocha 43c12ebef3 Add pull-request.yml
Use windows-2019

Update

Use absolute path for other YML

User relative path for other YAML

Use expression to evaluate $(RunUnitTests)

Update

Update

Update

Update

Update

Update

Update

Update

Update

Update

Update

Update

Update

Update

Update

Shorten job description

Add variable-verifying task

Clean up pull-request.yml

Disable PR validation until merging

Use dependencies to pass NuGetId

Update

Use matrix for NuGet job

Remove parameter runUnitTests

Uncomment triggers
2020-10-28 21:49:42 -07:00
Julio C. Rocha 13a288505a Use efficient search for Google Test adapter dir 2020-10-28 21:37:56 -07:00
Julio César Rocha ff17ddcc2b Rely on NuGet metadata to manage packages (#31)
* Add .editorconfig

* Use DirectoryInfo for folder paths

* Use non-interpolable literals in ValidateSet

* Add NuGet config and packages

* Add NuGet config and packages

* Obtain Boost version from packages.config'

* Add UseOldGn param.

* Drop old GN download
2020-10-28 21:37:56 -07:00
tudorms de40eed5ee Update to version 8.6 (#30)
* Fix JSI implementation to pass unit tests. Include windbg extension

* Add support for Symbol

* Don't try to run ARM unit tests

* Don't build debug extension in uwp

* pipeline syntax

* You can't use parameters in conditions

* yaml syntax

* timeout

* Add a debug line

* Try a separate boolean parameter

* Update to v8.6

* small build fix

* Fix ARM64 build
2020-10-28 21:37:56 -07:00
tudorms ca521942e8 Fix JSI implementation to pass unit tests. Include windbg extension (#28)
* Fix JSI implementation to pass unit tests. Include windbg extension

* Add support for Symbol

* Don't try to run ARM unit tests

* Don't build debug extension in uwp

* pipeline syntax

* You can't use parameters in conditions

* yaml syntax

* timeout

* Add a debug line

* Try a separate boolean parameter
2020-10-28 21:37:56 -07:00
tudorms 2ad32e83e8 Add ARM64 targets (#27)
Add ARM64 targets
2020-10-28 21:37:56 -07:00
tudorms a7c8e9bbca Create versioning scheme for RN compatibility (#24)
* Keep experimenting with PublishSymbols

* Try to create a separate NuGet for UWP

* Remove PublishSymbols task

* Different nuspec and targets files

* bump version

* Start branching for RN (JSI) compatibility

* Create versioning scheme for master branch

* Synchronize JSI headers from RN master

* Save JSI headers in a different location to avoid conflicts
2020-10-28 21:37:56 -07:00
tudorms 880f3e0ed7 Generate a separate package for UWP (#23)
Generate separate packages for win32 and uwp, since together they go over the nuget.org 250Mb limit.
2020-10-28 21:37:56 -07:00
tudorms 895b48e25e Publish symbols in separate package
The PDBs now go in a separate snupkg package (we still need to follow up on where those can actually go).
2020-10-28 21:37:56 -07:00
tudorms 08e9c31ea4 Add UWP (and ARM64) targets (#20)
* Add UWP (and ARM64) targets

* Use AppPlatform instead of Architecture; pass arguments as arrays to LocalBuild
2020-10-28 21:37:56 -07:00
tudorms 48d817a6dd Remove FH4-related version pinning
Now that upstream dependents upgraded form v15 to v16 toolset, we can remove the hardcoded version pinning (which will reduce CI loop time significantly).
2020-10-28 21:37:56 -07:00
tudorms c7f427d85b Some inspector code cleanup (#17)
* Fix basic debugging support. Upgrade to V8 8.4

* Try a new way to install VS components

* try different arguments for vs installer

* try to collect logs for VSInstall failures

* try to capture vslogs

* syntax fix

* add an update step

* always download bootstrapper to update installer

* Inspector cleanup; shutdown per-platform support (exp.)

* Address some CR comments; update boost to 1.72

Co-authored-by: tudorm <tudorm@microsoft.com>
2020-10-28 21:37:56 -07:00
Anandraj 6e2d7b890c Building v8jsi binary for Android. For the first version, we have taken the JSI glue code out of our react native fork. The code of this code is mostly identical to our windows code now, but as we've added a bunch of code to Windows version after we forked off, it won't be a trivial exercise to unify the code. But, keeping both code in the same repo will make our life easier in the future to consolidate both. 2020-10-28 21:37:56 -07:00
tudorms 09a7700a08 Fix basic debugging support. Upgrade to V8 8.4 (#15)
* Fix a couple of bugs around the inspector (crash on detach, hang on shutdown with debugger attached, etc.);
* Upgrade to V8 version 8.4;
2020-10-28 21:37:56 -07:00
tudorms e04f5f2435 Update to V8 version 8.3 (#14)
* Hardcode 14.24 VC tools due to FH4 regression

* Initial UWP support work; support clang+stdlib builds; include version information in DLL

* Fix copyright string

Co-authored-by: tudorm <tudorm@microsoft.com>
2020-10-28 21:37:56 -07:00
tudorms 8fed97b038 Hardcode 14.24 VC tools due to FH4 regression (#13)
Co-authored-by: tudorm <tudorm@microsoft.com>
2020-10-28 21:37:56 -07:00
tudorms 49b3ae59e5 Add a configurable MsBuild property for not copying DLLs
This is required due to the convoluted build system in React Native Windows that has no way to distinguish between UWP and WIN32 builds in shared projects.

The V8JSI_NODLLCOPY MsBuild property will skip the ReferenceCopyLocalPaths step if set.
2020-10-28 21:37:56 -07:00
tudorms 2b603500c9 UTF-8 bundles not read correctly (#11)
* Reenable some V8 disabled warnings. Fix some warnings in adapter code. Turn on CFG.

* Add waitForDebugger flag and use default debugger port

* Ignore line endings when applying patches. Also turn on CI coverage for PRs

* V8 does not support external UTF-8 strings (only ASCII and 2-byte), so we need to copy the data.

* Rev package version

* GClient is using Python 3 by default as of today

Co-authored-by: tudorm <tudorm@microsoft.com>
2020-10-28 21:37:56 -07:00
tudorms 7686eb09f0 Turn on CI coverage for PRs (#10)
* ignore line endings when applying patches.
* turn on CI coverage for PRs
2020-10-28 21:37:56 -07:00
tudorms 9c72d1b18f Enable some warnings and turn on Control Flow Guard (#9)
- reenable some V8 disabled warnings;
- fix some warnings in adapter code;
- turn on CFG (Control Flow Guard);
- add waitForDebugger flag and use default debugger port;
2020-10-28 21:37:56 -07:00
tudorms c6d7e6860b Convert JS errors into C++ jsi::JSError exceptions; update JSI headers; update v8 to 8.1
* update to version 8.1 of V8;
* convert JS errors into C++ jsi::JSError exceptions;
* update JSI headers to latest Hermes AP;
* remove some console logging;
2020-10-28 21:37:56 -07:00
tudorms d7f202bb5d Delay load v8jsi.dll (#7)
* delay load the dll by default (so that consumers can have a run-time / optional dependency on v8jsi.dll without needing to distribute it if unused);
* the Platform must be process-singleton to match v8 internals (V8 is not embedder-friendly and makes several assumptions about objects that are initialized once per process - we're matching that design with our V8Platform to avoid crashes if multiple contexts are created / shut down during a process' lifetime);
2020-10-28 21:37:56 -07:00
tudorms c011ec543f Fix ADO pipeline (#6)
* Fix ADO pipeline
* A few more readme details
2020-10-28 21:37:56 -07:00
tudorms c77944d194 Switch to V8 8.0; improve CI build time (#5)
* Switch back to V8 8.0 (with disabled FH4 support for 141 toolset compatibility);
* Reduce unnecessary dependencies on Boost libraries;
* Use NuGet for bringing in Boost ASIO headers (much faster than downloading the whole zip from boostorg);
* Misc fixes (include v8 version / ref number in NuGet, etc.);
2020-10-28 21:37:56 -07:00
tudorms 496803ff04
Add a (not yet functional) unit test target; downgrade V8 to 7.9 (8.0 is causing runtime crashes with pointer compression on x64) (#3) 2020-02-05 14:16:29 -08:00
tudorms b3c9981525
Initial check-in (#1)
This includes all work previously done for the V8 Jsi implementation, partially cleaned up, plus build scripts and requisite licensing / comment changes in preparation for public OSS release.
2020-01-30 09:25:49 -08:00
Microsoft Open Source 819a417823 Initial SECURITY.md commit 2020-01-27 13:18:53 -08:00
Microsoft Open Source 0a610911b6 Initial README.md commit 2020-01-27 13:18:52 -08:00
Microsoft Open Source 5d516378a5 Initial LICENSE commit 2020-01-27 13:18:51 -08:00
Microsoft Open Source 3d41b6c03c Initial CODE_OF_CONDUCT.md commit 2020-01-27 13:18:50 -08:00
microsoft-github-operations[bot] a08671f5c1
Initial commit 2020-01-27 21:18:45 +00:00