Commit Graph

5559 Commits

Author SHA1 Message Date
Emily Fortuna 24d8e7bc4b Git Merge Error not in your favor!
Update status files again as a result of https://codereview.chromium.org/3007743002/

BUG=

Review-Url: https://codereview.chromium.org/3008853003 .
2017-08-29 16:40:09 -07:00
Bob Nystrom 0cae5b30fc Migrate over the status for closure_cycles_test.
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/3008863002 .
2017-08-29 16:29:27 -07:00
Emily Fortuna 98e36f719e Add boxing for modified variables
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/3007743002 .
2017-08-29 16:27:28 -07:00
Bob Nystrom a719910d78 Migrate block 116.
Interesting bits:

- Removed some behavior that is now unreachable in the presence of
  type errors.
- Made if_null_behavior_test not a multitest since it doesn't need to
  be any more.
- Likewise, if_null_evaluation_order_test never needed to be a
  multitest.

R=lrn@google.com

Review-Url: https://codereview.chromium.org/3003933002 .
2017-08-29 15:50:49 -07:00
Stephen Adams 4449ec4f89 dart2js kernel: Handle ir.LocalInitializer
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009803003 .
2017-08-29 15:45:37 -07:00
Johnni Winther 1fc47782e9 Update --dart2js-with-kernel status
Review-Url: https://codereview.chromium.org/3006773002 .
2017-08-29 11:39:41 +02:00
Stephen Adams 043708d48c Avoid Element-only assertions in generateParameterStubs
TBR=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3008753002 .
2017-08-28 21:23:19 -07:00
Stephen Adams 0046325ebd Resort dart2js kernel status
TBR=sigmund@google.com

Review-Url: https://codereview.chromium.org/3007733002 .
2017-08-28 20:02:16 -07:00
Alexander Aprelev 7cbb96c199 Wholesale update tests status in attempt to make (fyi) dartkp buildbots green.
Buildbots are here: https://build.chromium.org/p/client.dart.fyi/console.

BUG=
R=asiva@google.com

Review-Url: https://codereview.chromium.org/3000423002 .
2017-08-28 18:32:21 -07:00
Bob Nystrom 60a8af35fd Fix dart2js status.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/3010593002 .
2017-08-28 17:58:26 -07:00
Bob Nystrom 46320c5208 Migrate block 115.
Interesting changes:

- A static getter colliding with an inherited non-static setter is a
  compile error, not a type warning.

- Trying to call a setter on what is only a getter is a compile error
  with no runtime behavior.

- Add support to test.dart for negative tests in DDC.

BUG=
R=jcollins@google.com

Review-Url: https://codereview.chromium.org/3005643002 .
2017-08-28 16:17:28 -07:00
Emily Fortuna 63754bba71 Add more tests for closures and change closure indexing to be by FunctionExpression or FunctionDeclaration rather than FunctionNode.
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3003963002 .
2017-08-28 14:24:58 -07:00
Jens Johansen 9e579f76ff Update dart2js status file for dart2js-with-kernel
BUG=

Review-Url: https://codereview.chromium.org/3011523002 .
2017-08-28 15:36:28 +02:00
Peter von der Ahé c89fb50056 Fix issues from CL 3009573002.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3003993002 .
2017-08-28 13:51:52 +02:00
Emily Fortuna fba36729ec Revert "Revert "Reduce use of getClosureInfoForMember and cleanup closure_test""
This reverts commit e94ff86b2b.

Reapply Johnni's change with the status file updates.

BUG=

Review-Url: https://codereview.chromium.org/3008603002 .
2017-08-25 18:14:34 -07:00
Stephen Adams 5865a13c44 dart2js kernel: update tryInlineNativeMethod to Entities
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2998413002 .
2017-08-25 16:13:38 -07:00
Emily Fortuna d9bfc227c9 Alphabetize the test status files.
BUG=

Review-Url: https://codereview.chromium.org/3009603002 .
2017-08-25 10:39:21 -07:00
Emily Fortuna a333af42f0 Boy I hope this is the last status file change after https://codereview.chromium.org/3001803002/
BUG=

Review-Url: https://codereview.chromium.org/3010453002 .
2017-08-25 09:38:45 -07:00
Morten Krogh-Jespersen 706d4231ea Migrating block 59, first commit, after tool has run.
There were tests that tested only checked mode, having their name on the form xx_checked_xx. Those files have been renamed to static.

We found an issue in the DDC regarding constant maps, the issue has been added to the status file.

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

Review-Url: https://codereview.chromium.org/2994383002 .
2017-08-25 12:10:13 +02:00
Vyacheslav Egorov 7d5231796e [VM, Precompiler] Support obfuscation of the symbolic information in precompiler
Obfuscation is controlled by obfuscate flag in Dart_IsolateFlags.

Obfuscation of identifiers is performed during script tokenization - when TokenStream is generated from the source. All kIDENT and kINTERPOL_VAR tokens are renamed consistently using a persistent obfuscation map stored in ObjectStore::obfuscation_map.

Some identifiers (pseudo-keywords, arithmetic operators, builtin recognized methods and entry-points) are not renamed to keep name based lookups from breaking. All other identifiers are renamed.

Constant instances of Symbol-s (both created via literal syntax #ident and using constant constructor const Symbol("ident")) are renamed consistently with corresponding identifiers.

Script urls and Library urls and names are also obfuscated.

Obfuscation map can be dumped as a JSON array at the end of precompilation using Dart_GetObfuscationMap API.

BUG=https://github.com/dart-lang/sdk/issues/30524
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/3003583002 .
2017-08-25 09:48:23 +02:00
Emily Fortuna 69e7c53948 More status files updates after https://codereview.chromium.org/3001803002/
BUG=

Review-Url: https://codereview.chromium.org/3005583002 .
2017-08-24 23:44:06 -07:00
Emily Fortuna 51b0320c76 Revert "More test status follow ups from https://codereview.chromium.org/3001803002/."
Well, clearly this didn't edit the status files I intended and caused more havoc
than was already there. Reverting this and will follow up tomorrow morning.

This reverts commit 5a45aaafc4.

BUG=

Review-Url: https://codereview.chromium.org/3007523004 .
2017-08-24 23:26:25 -07:00
Emily Fortuna 5a45aaafc4 More test status follow ups from https://codereview.chromium.org/3001803002/.
BUG=

Review-Url: https://codereview.chromium.org/3005563002 .
2017-08-24 18:17:09 -07:00
Bob Nystrom af1d9354b0 Migrate many_generic_instanceof_test to language_2.
It relies on a utility library that was already moved over, so this
gets it working again.

Review-Url: https://codereview.chromium.org/3008503002 .
2017-08-24 12:23:32 -07:00
Bob Nystrom 615be6451e Migrate block 114 (and some of 113).
generic_instanceof ... getter_closure_execution_order_test.

The main interesting one is generic_methods_type_expression_test. It
was testing old Dart 1.0-specific behavior and needed a lot of changes.

R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/3001803002 .
2017-08-24 10:52:29 -07:00
Martin Kustermann 055dbbfd68 [VM] Disable --deoptimize-every/--stacktrace-every in kernel isolate
Since the kernel isolate is just an auxiliary service, it makes little sense that it "inherit" these flag (similarly --checked is not "inherited" by kernel isolate)

Fixes https://github.com/dart-lang/sdk/issues/28788
Fixes https://github.com/dart-lang/sdk/issues/28933

R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2997403002 .
2017-08-24 11:15:15 +02:00
Ryan Macnak 20002d14b1 [vm, aot] Ensure fixups applied after the world has been compiled are applied to closures in finally clauses.
Finally clauses are inlined into try and catch blocks. This causes the parser to allocate at least two functions for any closure in a finally cause, only one of which will be registered by the flow graph builder. The unregistered function gets compiled, but the program visitor is unable to iterate it. To fix this, we use both the program visitor and the tree-shaker's work queue to apply fixups.

Fixes #30522

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

Review-Url: https://codereview.chromium.org/3003253002 .
2017-08-23 16:42:38 -07:00
Stephen Adams 2c6ae26aba update_all: remove user-dependent part of assertion file path
TBR=sigmund@google.com

Review-Url: https://codereview.chromium.org/3003273002 .
2017-08-23 16:02:55 -07:00
Stephen Adams 83ea082dd3 Redo "dart2js-kernel: implement native static methods"
BUG=

Review-Url: https://codereview.chromium.org/2995293002 .
2017-08-23 14:06:20 -07:00
Johnni Winther 1658036b05 Share locals between members
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2995113002 .
2017-08-21 15:02:10 +02:00
Johnni Winther 3c8096e040 Split getClosureRepresentationInfo into MemberEntity and (ir/ast) nodes
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/3002953002 .
2017-08-19 10:36:49 +02:00
Johnni Winther 6b36ecefe7 Handle labelled breaks
Closes #30492

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3001233002 .
2017-08-19 10:10:48 +02:00
Stephen Adams 2fc1ca0b6c DeferredTask.isDeferredClass Element->Entity
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2995253002 .
2017-08-18 11:00:49 -07:00
Johnni Winther 849998c5a9 Update dart2js_with_kernel status
Review-Url: https://codereview.chromium.org/2996263002 .
2017-08-18 16:24:01 +02:00
Johnni Winther 9b87beb184 Avoid crash for type variables in mixed in fields.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2994383003 .
2017-08-18 15:33:46 +02:00
Stephen Adams 8499c8f12e dart2js kernel: minimal recognition of external native methods
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/3000123002 .
2017-08-17 21:39:14 -07:00
Stephen Adams 3021706f87 More dart2js status duplicate removal
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2996203002 .
2017-08-17 19:17:41 -07:00
Johnni Winther 7c77f2db48 Various redemptions
R=efortuna@google.com

Committed: https://github.com/dart-lang/sdk/commit/49b064da419f6eb141c980aec15296a4bb517956

Reverted: https://github.com/dart-lang/sdk/commit/a0110b32f33462be85db64cbda2024ee8912a968
Review-Url: https://codereview.chromium.org/2994333002 .
2017-08-17 15:54:37 +02:00
Emily Fortuna 09b215a2fd Fix the local variable lookup in the locals handler.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2994363002 .
2017-08-16 16:08:21 -07:00
Janice Collins 52ba74db8f Migrate test block 47 and downstream dependencies to Dart 2.0.
Special items in this block:
- checked_mode_helper is a helper library that needed extensive modifications.  Fixing it up for Dart 2.0 meant simultaneously migrating
its users in blocks 113 and 163.  Renamed it to dynamic_type_helper to try to reflect what it's actually doing now.
- Many minor breakouts of compile-time errors and conversion from static warnings.
BUG=
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2999733002 .
2017-08-16 11:23:13 -07:00
Johnni Winther 6c20635364 Implement .getCallType
+ a few more pending TODOs

R=sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/8010a919587d085a7186738e459b81ca85fa90ca

Reverted: https://github.com/dart-lang/sdk/commit/f679eb271ab8e9862965d7580010515be7fb1f8b
Review-Url: https://codereview.chromium.org/3000763002 .
2017-08-16 14:39:22 +02:00
Morten Krogh-Jespersen 312ce6d002 Migrating another batch of tests to dart 2.
Start:
./language[_strong]/closure_side_effect_test.dart
End:
./language[_strong]/compile_time_constant2_test.dart

Except for tests/language_2/closure_type_test.dart, all other files has been copied automatically by the tool.

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

PS: Forgot to run git cl upload command right after the migrate_tool, which I should have done, to make the automatic and manual changes clearer.
Review-Url: https://codereview.chromium.org/3002573002 .
2017-08-16 11:51:42 +02:00
Johnni Winther f679eb271a Revert "Implement .getCallType" and "Update status"
This reverts commits 8010a91958 and f66024f5ef.

Review-Url: https://codereview.chromium.org/2997033002 .
2017-08-16 11:40:28 +02:00
Johnni Winther f66024f5ef Update status
Review-Url: https://codereview.chromium.org/2994313002 .
2017-08-16 11:23:33 +02:00
Stephen Adams fd600fd334 Implement methods in KernelClosedWorldMixin
R=sra@google.com

Review-Url: https://codereview.chromium.org/2997843002 .
2017-08-15 14:18:46 -07:00
Morten Krogh-Jespersen 3803057169 Migrating a block of dart 2:
./language[_strong]/class_keyword_test.dart
./language[_strong]/closure_shared_state_test.dart

R=johnniwinther@google.com

NOTE: I had to bypass hooks since the analyser fails on the files that have static compile-time errors. Should I do something else?
Committed: https://github.com/dart-lang/sdk/commit/fa59030f18c5015f7e25832d9247cc2967e99aa1
Review-Url: https://codereview.chromium.org/3001433002 .
2017-08-10 15:11:33 +02:00
Morten Krogh-Jespersen f0e8bb629b Revert "Migrating a block of dart 2:"
This reverts commit fa59030f18.

TBR=sortie@google.com

Review-Url: https://codereview.chromium.org/2997723002 .
2017-08-10 14:51:18 +02:00
Morten Krogh-jespersen fa59030f18 Migrating a block of dart 2:
./language[_strong]/class_keyword_test.dart
./language[_strong]/closure_shared_state_test.dart

R=johnniwinther@google.com

NOTE: I had to bypass hooks since the analyser fails on the files that have static compile-time errors. Should I do something else?
Review-Url: https://codereview.chromium.org/3001433002 .
2017-08-10 14:43:05 +02:00
Johnni Winther 463e7de4eb Update --dart2js-with-kernel status
Review-Url: https://codereview.chromium.org/2995733002 .
2017-08-10 11:35:48 +02:00
Emily Fortuna 3aee4694ab Added ThisVariable in scoping and the captured scope of initialized fields.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2998673002 .
2017-08-09 09:09:38 -07:00