Commit Graph

11114 Commits

Author SHA1 Message Date
koda@google.com ec00a4ace6 Make test compatible with dart2js integer semantics.
R=vegorov@google.com

Review URL: https://codereview.chromium.org//946203002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43941 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-22 05:57:35 +00:00
koda@google.com 574028165f Ensure hash pattern is non-zero. Re-enable compact hash map/set.
BUG=dart:22520
TBR=vegorov@google.com

Review URL: https://codereview.chromium.org//946893002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43940 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-22 03:04:35 +00:00
rmacnak@google.com be05129a8c Mark async_rethrow_test as failing on Dartium as well.
TBR=hausner@google.com

Review URL: https://codereview.chromium.org//943093003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43939 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-21 01:00:30 +00:00
srdjan@google.com 093da297dc Added a test for issue 22523.
R=hausner@google.com

Review URL: https://codereview.chromium.org//950463002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43935 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 22:55:23 +00:00
asiva@google.com ddb56280a2 Added a test for issue 12474.
R=vsm@google.com

Review URL: https://codereview.chromium.org//943503004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43929 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 21:09:43 +00:00
floitsch@google.com cef3704d8e dart2js: don't emit big integers as integer, but instead use their exponential representation.
BUG= http://dartbug.com/16600
R=herhut@google.com

Review URL: https://codereview.chromium.org//944863002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43913 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 14:29:46 +00:00
johnniwinther@google.com 44bcb14217 Small fixes in preparation for SemanticVisitor.
BUG=http://dartbug.com/20377
R=karlklose@google.com

Review URL: https://codereview.chromium.org//938173004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43912 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 14:25:12 +00:00
herhut@google.com be3c508ffd Fix type propagation for and operator.
BUG= http://dartbug.com/22427
R=floitsch@google.com

Review URL: https://codereview.chromium.org//941293002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43908 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 11:49:10 +00:00
johnniwinther@google.com 78e30804e8 Make enum a keyword in dart2js.
BUG=http://dartbug.com/22478
R=floitsch@google.com

Review URL: https://codereview.chromium.org//944813002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43906 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 10:54:48 +00:00
floitsch@google.com 27a30ee1de dart2js: Support isDeferred on DependencyMirrors.
BUG= http://dartbug.com/22475
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//924393003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43905 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-20 10:37:44 +00:00
nweiz@google.com c8de060c54 Revert "Revert "Use native async/await support in pub.""
The VM now fully supports all the weird async stuff pub is doing, and all the
tests pass with native async/await!

Previous CLs were r43484 and r43483.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//937243002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43897 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 22:28:54 +00:00
koda@google.com c6e3dd73c2 Default to compact Map/Set implementation.
Also adjust unit tests accoringly to maintain coverage, and remove some redundant ones.

R=iposva@google.com

Review URL: https://codereview.chromium.org//936613007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43894 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 21:28:56 +00:00
sra@google.com 2602413b00 Fix for dart2js codegen issue 22487
R=herhut@google.com

Review URL: https://codereview.chromium.org//932363002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43887 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 19:04:41 +00:00
iposva@google.com a5ad3de7b0 - Mark failing dart2js test.
Review URL: https://codereview.chromium.org//939183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43883 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 17:13:52 +00:00
fschneider@google.com 2442d5e047 VM: Fix a bug with local variable values when breaking at a variable declaration.
This fixes the case When breaking at a declaration 'var a;'

BUG=dartbug.com/22353
R=hausner@google.com

Review URL: https://codereview.chromium.org//936283005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43882 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 17:11:07 +00:00
iposva@google.com 7d1785e760 - Allow any implementation of StackTrace to participate in async/
await exception handling.

R=hausner@google.com

Review URL: https://codereview.chromium.org//940863002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43880 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 16:17:19 +00:00
scheglov@google.com 4e7ecb1103 Issue 22409. Restore recognizing string concatenation in const expressions.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=22409
     https://code.google.com/p/dart/issues/detail?id=21000

Review URL: https://codereview.chromium.org//940853002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43879 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 15:35:54 +00:00
ahe@google.com 84ef02af67 Revert "Remove implicit dependencies."
This reverts r43874.

Revert "Register literals through backend."

This reverts r43876.

FAILED: dart2js-d8-checked release_ia32 utils/source_mirrors_test
out/ReleaseIA32/dart-sdk/lib/_internal/compiler/js_lib/preambles/d8.js:263: Uncaught Error: Invalid argument(s): "_Proxy" is a private identifier
Stack Trace:
Error
    at dart.wrapException (/mnt/data/b/build/slave/dart2js-linux-release-checked-1-5-be/build/dart/out/ReleaseIA32/generated_compilations/dart2js-checked-sdk/tests_utils_source_mirrors_test/out.js:2990:15)
    at dart.Symbol0.static.Symbol_validatePublicSymbol (/mnt/data/b/build/slave/dart2js-linux-release-checked-1-5-be/build/dart/out/ReleaseIA32/generated_compilations/dart2js-checked-sdk/tests_utils_source_mirrors_test/out.js:11047:19)

That is, attempting to create a symbol for _Proxy, which is something I did change.

Also, many dart2dart fails with errors like this:

Internal Error: Function signature has not been computed for function(Symbol#).
  const factory Symbol(String name) = internal.Symbol;
                ^^^^^^

Also something that I changed.

Review URL: https://codereview.chromium.org//918893003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43878 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 15:31:39 +00:00
vegorov@google.com e8b7f9cb06 Don't constant fold operation if result is incompatible with it.
For example we can't replace BinarySmiOp with Mint constant because we might have removed the checks based on the assumption that BinarySmiOp always returns a Smi.

BUG=http://dartbug.com/22480
R=fschneider@google.com

Review URL: https://codereview.chromium.org//938783003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43875 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 13:48:48 +00:00
ahe@google.com b3f2d3be1f Remove implicit dependencies.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//930143002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43874 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 13:31:37 +00:00
koda@google.com 780ab3a2ec Correct status for opt counter threshold failure.
R=whesse@google.com
TBR=whesse@google.com

Review URL: https://codereview.chromium.org//943553002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43871 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 13:20:26 +00:00
sigurdm@google.com 1227ed3eb9 Move the try-catch out of the async-function
V8 will not optimize bodies surrounded by try/catch. So it is moved to
js_helper.

To be applied on top of https://codereview.chromium.org/932053002/ .

BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//926553005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43868 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 09:21:11 +00:00
iposva@google.com db9faebe98 - Simplify collection of stack traces. If we determine that a stack
trace is needed we collect the full stack trace instead of piecing
  it together as we walk up the stack.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org//939773003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43863 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 02:18:53 +00:00
rmacnak@google.com 3858e8fc50 Classify mirror tests skipped on the VM.
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//938603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43862 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-19 01:14:19 +00:00
koda@google.com d438fcac21 Mark test as failing due to optimizer issue 22480.
There doesn't seem to be any way to specify the optimization-counter-threshold builder, so allow both RuntimeError and Pass for now.

TBR=vegorov@google.com

Review URL: https://codereview.chromium.org//937643007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43855 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 22:50:29 +00:00
fschneider@google.com aefdc04fa8 VM: Fix issue with local variable values reported by the debugger.
I added a function to test if a variable is visible or not to the
debugger tests.

BUG=dartbug.com/22353
TEST=standalone/debugger/local_variables_test
R=hausner@google.com

Review URL: https://codereview.chromium.org//933253003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43850 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 18:48:00 +00:00
paulberry@google.com dffb8c8a68 Status updates for issue 22475.
TBR=rmacnak@google.com

Review URL: https://codereview.chromium.org//938593004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43843 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 15:18:39 +00:00
koda@google.com 1d7ca12fdc Compact LinkedHashMap/Set implementation.
Add GC-friendly replacement for default Map/Set:
* open-addressing hash table, avoiding the overhead of chained entries
* index separate from the keys/values, allowing more of it to fit in the cache
* new keys are always appended, to allow insertion-order iteration
* spare bits in index entries are used to store hashes
* index is typed data, so can be ignored by GC

Enable it with --use_compact_hash (disabled by default).

Reduces Dart2JS compilation time for huge codebase (N=200) by ~30%, due to reduced time in GC. Slightly slower for small maps and maps with deletions: json benchmarks regress by ~5%.

R=vegorov@google.com

Review URL: https://codereview.chromium.org//915323002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43840 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 13:58:32 +00:00
herhut@google.com e3efcb499a Fix co19 status file.
BUG=
TBR=floitsch@google.com

Review URL: https://codereview.chromium.org//938703002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43839 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 13:35:00 +00:00
sigurdm@google.com 6ff10c59a9 Support for interpolated declarations in the js parser.
Also use this support to avoid non-constant templates in async_rewrite.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//932053002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43837 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 13:00:41 +00:00
herhut@google.com 38512aca1b Make value range analysis tolerate erroneous length expressions.
BUG= http://dartbug.com/21166
R=floitsch@google.com

Review URL: https://codereview.chromium.org//936483004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43836 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 12:11:58 +00:00
regis@google.com 4d09e6a9dd Accept constant string concatenation and constant string length as constant
expressions (fix issue 22408).

R=hausner@google.com

Review URL: https://codereview.chromium.org//935713002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43831 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-18 00:38:40 +00:00
rmacnak@google.com 4abf50c04d Add LibraryDependencyMirror.isDeferred.
R=asiva@google.com, gbracha@google.com

Review URL: https://codereview.chromium.org//921163004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43829 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 23:49:40 +00:00
regis@google.com 6a7be914e3 Add modPow tests.
Fix selection of modular reduction algorithm for modPow.
Remove bad assert and fix digits array length in classic modular reduction.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//918403002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43817 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 19:32:32 +00:00
kevmoo@google.com 4cc4e28411 status files: trying out new SkipSlow flag
and selectively used SkipByDesign in more places

R=whesse@google.com

Review URL: https://codereview.chromium.org//928523002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43815 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 17:21:39 +00:00
sigurdm@google.com 1c3a2fe9bb Fix status files
BUG=

Review URL: https://codereview.chromium.org//928633003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43813 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 15:48:16 +00:00
sigurdm@google.com 3ae9ac92c5 Fix error handling in dart2js async-await
BUG= dartbug.com/22372
R=floitsch@google.com

Review URL: https://codereview.chromium.org//925973002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43812 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 14:51:49 +00:00
herhut@google.com 26f73679fa Update co19 status file.
BUG=
TBR=floitsch@google.com

Review URL: https://codereview.chromium.org//933953002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43810 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 14:26:33 +00:00
sgjesse@google.com 8cd4d4d425 Add the shared flag to HttpServer as well
Also mark the ServerSocketReference and friends as deprecated and to
be removed in Dart 1.10

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//925403002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43809 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 13:14:49 +00:00
herhut@google.com 97b4916264 Update co19 status file.
BUG=
TBR=floitsch@google.com

Review URL: https://codereview.chromium.org//933853002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43806 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 11:43:07 +00:00
herhut@google.com 4e3b966bbd Support positional optional parameters even if stubs are missing.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//930093002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43805 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-17 09:39:19 +00:00
floitsch@google.com 24c0b1aba1 Update no-inline annotation in test.
Review URL: https://codereview.chromium.org//930883002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43800 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-16 13:07:23 +00:00
floitsch@google.com 11cbcf647b Avoid spurious "The compiler crashed" messages in batch mode.
BUG= http://dartbug.com/21926
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//923103003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43799 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-16 11:52:29 +00:00
floitsch@google.com a2bf14ba1d Support @NoInlining in the ssa-builder.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//912223003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43798 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-16 11:50:37 +00:00
floitsch@google.com 2ffa638e82 dart2js: fix dart2js crash when getRuntimeTypeArgument was not registered.
R=johnniwinther@google.com, karlklose@google.com

Review URL: https://codereview.chromium.org//923113002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43797 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-16 11:48:17 +00:00
whesse@google.com 80a3f9ed1c Add flaky tests to co19 status.
Sort lines in the ContentShellOnAndroid section.

BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//921673002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43794 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-16 07:49:58 +00:00
rmacnak@google.com 511c997316 Implement DeclarationMirror.location for all but ParameterMirrors.
- Mark NativeFieldWrapper classes as synthetic.
- Mark ClassID fields as synthetic.

BUG=http://dartbug.com/22378
R=gbracha@google.com, hausner@google.com

Review URL: https://codereview.chromium.org//922023002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43784 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 23:32:20 +00:00
asiva@google.com ab63b05128 Fix dart2js status when run on chrome.
Review URL: https://codereview.chromium.org//926653003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43778 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 20:35:56 +00:00
asiva@google.com b87f29bbf1 Fix status file for dart2dart
Review URL: https://codereview.chromium.org//926113003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43777 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 20:20:23 +00:00
asiva@google.com f3f2144ad8 Fix status file to account for dartium not being able to do spawnFunction.
Review URL: https://codereview.chromium.org//923173002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43775 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 19:17:14 +00:00