Commit Graph

3601 Commits

Author SHA1 Message Date
Ryan Macnak fb127ddf4a Standalone: Add missing tree-shaker root.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2356953002 .
2016-09-20 14:44:05 -07:00
Zachary Anderson 43231d9ff4 Pull boringssl generated source from boringssl_gen
Dart and Flutter engine both need to have the code generated for
boringssl under //third_party/boringssl. To avoid having two
copies of this code, this CL removes it from the Dart repo and
instead pulls it from a github repo that Flutter engine can
share.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2354623003 .
2016-09-20 08:46:44 -07:00
William Hesse 0695b1db3a Remove package root target and support scripts
BUG=https://github.com/dart-lang/sdk/issues/23565
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2346163005 .
2016-09-20 13:32:50 +02:00
Zachary Anderson 509e6f3eb3 Fixes Dartium build
R=asiva@google.com

Review URL: https://codereview.chromium.org/2345773004 .
2016-09-16 13:52:45 -07:00
Zachary Anderson 139db22be5 Use OS-provided trusted root certs on Linux
First, the look for trusted root certificates
in standard locations on the file system
(/etc/pki/tls/certs/ca-bundle.crt followed by
/etc/ssl/certs), and only if these do not exist
will we fall back on the compiled-in trusted root
certificates. This behavior can be overridden
with the new flags --root-certs-file and
--root-certs-cache.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2346683003 .
2016-09-16 09:08:51 -07:00
Zachary Anderson 44a04f18f9 Use tcmalloc on Linux
Statically linking in the tcmalloc code is enough
to override the built-in malloc. I have this set up to
exclude the code for collecting heap profiles in a
Product build. There's still about a 230KB increase in
binary size, though. I think this isn't a big problem
since right now this is enabled only for server Linux.

product binary size:
before x64: 9569600
after  x64: 9807840
increase: 238240 (2.5%)

before ia32: 9122836
after  ia32: 9360944
increase: 238108 (2.6%)

before mips: 9418680
after  mips: 9640940
increase: 222260 (2.4%)

InitialRSS:
product:
before x64: 6307840
after x64:  7430144
increase: 1122304 (17.8%)

release (--no-profiler)
before x64: 7843840
after x64:  9207808
increase: 1363968 (17.4%)

R=asiva@google.com, whesse@google.com

Review URL: https://codereview.chromium.org/2316813002 .
2016-09-16 08:24:54 -07:00
Zachary Anderson e2d269225b [fuchsia] Add InitialRSS to status list, add missing launchpad call.
R=asiva@google.com

Review URL: https://codereview.chromium.org/2337883004 .
2016-09-13 10:49:17 -07:00
Ryan Macnak fcda790b9c Fix bad origin check.
localhost.malicious.com is not localhost.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2298943004 .
2016-09-09 16:34:03 -07:00
James Robinson b56b355ca7 Update for mx_object_get_info() changes.
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/2319363002 .
2016-09-07 16:29:56 -07:00
Zach Anderson 245b330548 Fix run_vm_tests for Windows
related #27250

Review URL: https://codereview.chromium.org/2312293002 .
2016-09-06 10:57:35 -07:00
Zach Anderson a695975d00 Fixes run_vm_tests Windows shutdown problem
related #27250

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2311283002 .
2016-09-06 10:10:40 -07:00
Carlo Bernaschina 4b328e442f Added service protocol cross-origin access from localhost for http requests
Related to https://github.com/dart-lang/sdk/commit/e6e61332d6ec7c3bd6c92fa7496282174db521a7

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2308083002 .
2016-09-02 13:59:56 -07:00
Carlo Bernaschina 62114cee60 Added service protocol cross-origin access from localhost for http requests
Related to https://github.com/dart-lang/sdk/commit/e6e61332d6ec7c3bd6c92fa7496282174db521a7

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2295343006 .
2016-09-02 11:17:11 -07:00
James Robinson 713b392e6b Fix build: mx_handle_get_info -> mx_object_get_info.
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/2308673002 .
2016-09-02 11:00:00 -07:00
Zachary Anderson 4024fe154a GN: Relativize occurrances of //dart
The Dart root in the Dart tree is at //, not //dart.
But in the Dart tree we can refer to the root with
a relative path.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2301833003 .
2016-09-01 13:35:44 -07:00
Siva Annamalai 780ef51215 Add missing dependency in the rule which generates io_gen.cc
R=jsimmons@google.com, zra@google.com

Review URL: https://codereview.chromium.org/2305483002 .
2016-09-01 10:21:16 -07:00
Zach Anderson 62f9ac3cb9 Fix mac dartium build
Review URL: https://codereview.chromium.org/2291253002 .
2016-08-30 09:53:51 -07:00
Zachary Anderson b990bc3794 Fix native extension lookup
This CL allows native extension lookup to defer to the platform's
library lookup (e.g. dlopen) when the library cannot be found next to
the importing Dart library. It also allows dart-ext: to accept an
absolute path to the native library.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2285223003 .
2016-08-30 09:31:47 -07:00
James Robinson a55ead5775 [fuchsia] Fix build for new sysroot
Fixing build as various syscalls have moved out of runtime so it needs
to depend on lib-magenta

BUG=
R=zra@google.com

Review URL: https://codereview.chromium.org/2296463002 .
2016-08-29 15:07:46 -07:00
Zachary Anderson 50d321085c Fix -O0 compilation errors
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2289993002 .
2016-08-29 14:57:51 -07:00
Zachary Anderson 682a4d0036 Use different directory names in directory tests
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2292593002 .
2016-08-29 10:40:00 -07:00
Carlo Bernaschina 7bdb33a766 Log exceptions in vmservice post()
Fixes=https://github.com/dart-lang/sdk/issues/27172

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2287603004 .
2016-08-26 15:36:31 -07:00
Zachary Anderson b4a69e922d [fuchsia] Some directory operations
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2281223002 .
2016-08-26 14:30:50 -07:00
Zach Anderson 419aa6972e Fix directory test for windows
Review URL: https://codereview.chromium.org/2280793002 .
2016-08-25 14:44:20 -07:00
Zach Anderson d706680c74 Fix directory test on mac
Review URL: https://codereview.chromium.org/2281733002 .
2016-08-25 13:42:54 -07:00
Zachary Anderson 6963e6f440 [fuchsia] Fix process launching. Update statuses.
R=asiva@google.com, mcgrathr@chromium.org

Review URL: https://codereview.chromium.org/2277313002 .
2016-08-25 12:57:10 -07:00
Zachary Anderson 720ebb4a9c Adds some tests for dart::bin::Directory.
R=asiva@google.com

Review URL: https://codereview.chromium.org/2277883005 .
2016-08-25 12:47:41 -07:00
Ryan Macnak aa38062a23 Add WebSocket.addUtf8Text to allow sending pre-encoded text without a round-trip UTF-8 conversion.
Use it to implement the vm-service, where in particular we are concerned about the space overhead of the conversion leading to the process being killed on iOS.

Closes #27129

R=johnmccutchan@google.com, lrn@google.com

Review URL: https://codereview.chromium.org/2260073002 .
2016-08-24 16:15:07 -07:00
Zachary Anderson 57bff322cd Ignore non-UTF8 strings in the environment
R=asiva@google.com

Review URL: https://codereview.chromium.org/2273053002 .
2016-08-24 10:10:41 -07:00
Steven Sheffey 025b433c00 Updated directory_linux.cc to conform with the deprecation of readdir_r (#27093)
* Updated directory_linux.cc to conform with the deprecation of readdir_r

* Fixes to directory_linux.cc

* Modified error checking to more accurately represent the original code

* Removed redundant check and changed variable names for readability

* Changed variable name in DeleteRecursively for readability

* Modified loop for better error checking

* Simplified loop in DirectoryListingEntry::Next

* Fixed text on a comment

* Added summary of pull request and fixed code style

* Fixed commenting style

* Fixed a comment referencing readdir_r
2016-08-23 07:49:00 -07:00
Zachary Anderson 22dbeee255 [fuchsia] remove unused file. update vm test statuses
R=asiva@google.com

Review URL: https://codereview.chromium.org/2263783002 .
2016-08-22 08:55:18 -07:00
Ryan Macnak d418dde65b Reduce copying in sending service responses.
Add missing safepoint transitions.

Issue #27092
Likely contributes to Issue #27010

dart2js hello
Peak RSS at first Observatory visit -> Peak RSS after visiting timeline (with endless recorder)
Before 215M -> 321M
After 182M -> 233M

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2254543006 .
2016-08-18 10:34:50 -07:00
Zachary Anderson 1b303e64fe [fuchsia] Fix build. Build packages/ output. Add Directory::Exists().
The build was broken by the addition of OS::MaxRSS, which I've added
unimplemented. I need the packages/ output to get the Dart language
tests going. I've added Directory::Exists() so that we can give
the right error message on a missing package: import instead of
crashing.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2259613002 .
2016-08-18 09:21:14 -07:00
Zachary Anderson c21891ec6a Fuchsia: Improves run_vm_tests wrapper program.
This change makes a few improvements to Fuchsia's wrapper around
run_vm_tests:
- Loads the binary into memory only once, speeding things up a bit.
- Captures the output of 'run_vm_tests --list' to extract the list
  of tests to run instead of reading it from a file.
- Captures the output of the tests, and prints a test's stdout
  and stderr to the console only if the test failed.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2238983003 .
2016-08-18 08:50:26 -07:00
Zachary Anderson 21f670dfb8 [fuchsia] Remove no longer needed fuchsia_test
R=asiva@google.com

Review URL: https://codereview.chromium.org/2244413005 .
2016-08-18 07:48:25 -07:00
William Hesse a9c89293af Fix missing global declarations in socket_unsupported.cc
BUG=
R=terry@google.com,fschneider@google.com

Review URL: https://codereview.chromium.org/2251783002 .
2016-08-16 17:35:03 +02:00
Florian Schneider 021ebb2033 Correct and GC unrecognized flags from our tests.
Fix some misspelled flags.

Remove some non-existent flags.

Fix --short_socket_read and --short_socket_write flags used in IO tests.

Running with --ignore-unrecognized-flags is still on because some flags are only visible
in DEBUG mode.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/2247733005 .
2016-08-15 18:28:11 -07:00
James Robinson fa1bbc98cf [fuchsia] Use sysconf to get number of processors
We should be using standard interfaces to access information like
the nunber of processors.

R=zra@google.com

Review URL: https://codereview.chromium.org/2244253004 .
2016-08-15 15:21:36 -07:00
James Robinson cfdd6ee5cc [fuchsia] Update run_vm_tests_fuchsia for fuchsia launchpad API change
R=zra@google.com

Review URL: https://codereview.chromium.org/2235033002 .
2016-08-10 15:41:03 -07:00
Zach Anderson 581939d8b6 Retry: Fixes memory leaks in the eventhandler
Crashes were caused by removing from a std::map while iterating over it.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2231123002 .
2016-08-10 15:20:30 -07:00
Matthias Hausner 1a6d1eca32 Implement @patch annotation for patch class members
Allow members of patch classes to be annotated with @patch. The VM
ignores the annotation. I simply replaces the original method
if the name matches, or reports an error if field names match.

Adding a bit is_patched to members to do more checking remains a
TODO. There are currently no unused bits available, and I don’t want
to increase the size of Function objects for this.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/2230383003 .
2016-08-10 12:54:57 -07:00
Zachary Anderson bf085120f6 Revert: Fixes leak of duplicate command line environment strings
For bot crashes on Mac

Review URL: https://codereview.chromium.org/2229973002 .
2016-08-09 15:36:57 -07:00
Zachary Anderson 92abe83b26 Fixes memory leaks in the eventhandler
These probably only happen when the VM is going down after an unhandled
exception, but I want to fix them anyway.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2228503007 .
2016-08-09 15:20:50 -07:00
Adam Barth fac99f35b3 Switch Dart_Initialize to use a struct
The number of NULL parameters was getting out of hand.

R=zra@google.com

Review URL: https://codereview.chromium.org/2223463003
2016-08-09 12:25:39 -07:00
Adam Barth bd41127c7f Revert "Switch Dart_Initialize to use a struct"
I landed the wrong version of my patch.

This reverts commit bdc25d5695.
2016-08-09 12:24:13 -07:00
Adam Barth bdc25d5695 Switch Dart_Initialize to use a struct
The number of NULL parameters was getting out of hand.

R=zra@google.com

Review URL: https://codereview.chromium.org/2223463003 .
2016-08-09 12:20:16 -07:00
Matthias Hausner e11ca24053 Use metadata annotation @patch for patch classes
Annotate patch classes and top-level patch functions with @patch
instead of the pseudo-keyword patch. This allows the analyzer
to read patch files, and matches the syntax that dart2js uses.

The deprecated syntax is still supported, but a warning is printed when detected.

BUG=

Review URL: https://codereview.chromium.org/2220883004 .
2016-08-09 09:48:03 -07:00
Zachary Anderson 82cb63e70f Fixes leak of duplicate command line environment strings
R=asiva@google.com

Review URL: https://codereview.chromium.org/2222013002 .
2016-08-08 12:53:26 -07:00
Zachary Anderson 1c6d8fd4ec Fuchsia: Fix arm64 build
R=asiva@google.com

Review URL: https://codereview.chromium.org/2226843002 .
2016-08-08 12:43:13 -07:00
John McCutchan a67b9c82ee Support devFS writes via HTTP PUT
- [x] Allow DevFS writes over HTTP PUT with a gzip compressed payload.
- [x] Add service test for http put writes.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2225583002 .
2016-08-08 10:35:29 -07:00