Find a file
David Morgan 40ba886fa7 Revert "Reland "[ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API""
This reverts commit 082aece5f4.

Reason for revert: tonic fix not yet landed in google3.

Original change's description:
> Reland "[ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API"
> 
> This reverts commit 34447c8dbb.
> 
> Reason for revert: Last Dart_AllocateWithNativeFields usage removed in Tonic
> 
> Original change's description:
> > Revert "[ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API"
> > 
> > This reverts commit 3d1b8b26c2.
> > 
> > Reason for revert: Broke Flutter HHH. Dart_AllocateWithNativeFields is still used in Tonic.
> > 
> > Original change's description:
> > > [ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API
> > > 
> > > These methods are no longer necessary and all objects should be created
> > > using Dart_New instead.
> > > 
> > > Change-Id: If64d3e3579fc03dd1a2eb6bfec73c35e90c66d8f
> > > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135523
> > > Reviewed-by: Ryan Macnak <rmacnak@google.com>
> > 
> > TBR=bkonyi@google.com,rmacnak@google.com,asiva@google.com
> > 
> > Change-Id: I3dca62a1db60a90bbcc78c34ae150df628cd85c8
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135642
> > Reviewed-by: Clement Skau <cskau@google.com>
> > Commit-Queue: Clement Skau <cskau@google.com>
> 
> TBR=bkonyi@google.com,rmacnak@google.com,asiva@google.com,cskau@google.com
> 
> # Not skipping CQ checks because original CL landed > 1 day ago.
> 
> Change-Id: I2ac83e1bfccccd9b626acfa4a6ac517b4f3968fb
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136020
> Auto-Submit: Ben Konyi <bkonyi@google.com>
> Reviewed-by: Ben Konyi <bkonyi@google.com>
> Commit-Queue: Ben Konyi <bkonyi@google.com>

TBR=bkonyi@google.com,rmacnak@google.com,asiva@google.com,cskau@google.com

Change-Id: I74b6fafc86a3adcb52ca9f924fceda7831be8fc0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136222
Reviewed-by: David Morgan <davidmorgan@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-02-19 09:28:29 +00:00
.github
benchmarks [benchmarks] Add typed data copy benchmark 2020-01-24 22:04:35 +00:00
build
client
docs Ensuring that every feature spec in SDK is marked as background material 2020-02-10 11:31:44 +00:00
pkg [analyzer] Add test for bang before type arguments 2020-02-19 07:45:59 +00:00
runtime Revert "Reland "[ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API"" 2020-02-19 09:28:29 +00:00
samples [samples/ffi] Sample for asynchronous native port calls 2020-02-18 08:42:16 +00:00
samples-dev
sdk [vm/ffi] Change internal loads and stores to take no type arguments 2020-02-18 12:16:16 +00:00
sdk_nnbd [dart2js] Two small fixes for building dart2js with the nnbd runtime. 2020-02-18 23:02:49 +00:00
tests [test/ffi] Re-enable disabled tests 2020-02-19 08:53:39 +00:00
third_party Use source-maps in test runner to expand JavaScript stack traces. 2020-01-24 20:00:13 +00:00
tools [SDK] Adds IndirectGoto implementation of sync-yield. 2020-02-18 13:24:09 +00:00
utils [VM/Libraries] Use the NNBD libraries when building the NNBD sdk. 2020-02-07 00:00:07 +00:00
.clang-format
.gitattributes [test] Fork mirrors tests. 2020-01-22 18:46:23 +00:00
.gitconfig
.gitignore
.gn
.mailmap
.packages Change SDK to use package_config v1.9 (unreleased). 2020-02-18 10:56:59 +00:00
.style.yapf
.vpython
AUTHORS
BUILD.gn
CHANGELOG.md Revert "Reland "[ VM ] Removed Dart_Allocate, Dart_AllocateWithNativeFields, and Dart_InvokeConstructor from embedding API"" 2020-02-19 09:28:29 +00:00
codereview.settings
CONTRIBUTING.md
DEPS Upgrade dartdoc to v0.30.1. 2020-02-18 19:46:54 +00:00
LICENSE
PATENT_GRANT
PRESUBMIT.py
README.dart-sdk Add dart2native to sdk README 2020-01-20 09:32:58 +00:00
README.md Minor edit in README.md 2020-02-06 10:27:52 +00:00
sdk_args.gni
WATCHLISTS

Dart

A client-optimized language for fast apps on any platform

Dart is:

  • Optimized for UI: Develop with a programming language specialized around the needs of user interface creation

  • Productive: Make changes iteratively: use hot reload to see the result instantly in your running app

  • Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web

Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:

  • Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.

  • Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).

Dart platforms illustration

License & patents

Dart is free and open source.

See LICENSE and PATENT_GRANT.

Using Dart

Visit the dart.dev to learn more about the language, tools, getting started, and more.

Browse pub.dev for more packages and libraries contributed by the community and the Dart team.

Building Dart

If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.

There are more documents on our wiki.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.