Commit graph

32169 commits

Author SHA1 Message Date
Brian Wilkerson
098950256c Mark more code as deprecated
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1199303002.
2015-06-23 14:30:16 -07:00
Kevin Moore
d3a16303a2 final changelog updates for 1.11
R=kathyw@google.com

Review URL: https://codereview.chromium.org//1202853002.
2015-06-23 14:17:32 -07:00
Brian Wilkerson
563127941e Initial HTML work manager
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1200313002.
2015-06-23 13:48:08 -07:00
Kevin Moore
d7bf5501fc CHANGELOG a number of updates for 1.11
TBR

Review URL: https://codereview.chromium.org//1197283005.
2015-06-23 13:39:40 -07:00
Srdjan Mitrovic
f3c0a280d2 Fix bot failure: use platform specific separator
BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org//1199283002.
2015-06-23 13:30:11 -07:00
Srdjan Mitrovic
28594e455d Disable guessing 'other' cid; this prevents an issue in range analysis. It is not clear if guessing the 'other' cid optimization is the right thing to do as it may bring the flow graph in an unexpected state
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1203773002.
2015-06-23 13:23:02 -07:00
Dan Rubel
1ce49788ea performance measurement: add explicit temp source directory argument
BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1201263002.
2015-06-23 15:53:01 -04:00
Gilad Bracha
d8b47ad0a6 Added language spelling out static type of prefix objects
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1195133002.
2015-06-23 11:41:35 -07:00
Asger Feldthaus
c5bb081ed6 dart2js cps: Get typed selectors for compound operators.
This dramatically improves type inference. Previously, i++ would
completely destroy all type information known for i.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1197673003.
2015-06-23 17:04:19 +02:00
Asger Feldthaus
05497633df dart2js cps: Make Identical a built-in and add Interceptor to Tree IR.
Identical is now a built-in operator instead of a separate primitive.

Interceptor is now its own expression in the Tree IR instead of a static
invocation. This matches the CPS IR (where it is a primitive), and
should fix a problem it was causing for frequency-based naming.

The JS-specific subclass of the Tree IR builder no longer depended on
the backend, emitter, namer, glue, compiler, or anything so it has
been merged into the superclass.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1204733002.
2015-06-23 16:03:57 +02:00
John McCutchan
50842cd27a Add storage of class id and state bit to the profiler's Sample
- Stop storing sp and fp in Sample. Both are not used after the stack walk
- Add AllocationSample bit to Sample's state_
- Add a metadata_ field to Sample
- Use metadata_ to store a class id when AllocationSample bit is set

R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1199473003.
2015-06-23 06:47:39 -07:00
Søren Gjesse
318c716b41 Fix deletion of directory in test
TBR=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1192363009.
2015-06-23 13:34:01 +02:00
Asger Feldthaus
04c5c61a10 dart2js cps: Refactor and optimize string concatenations.
The ConcatenateStrings IR node has been removed. It was a leftover from
dart2dart.

Expressions inside string interpolations are now stringified explicitly
and we concatenate strings with a pure StringConcat operator.

ConstantExpressions have also been removed from the IR. They were also
an artifact from dart2dart and were complicating the optimizer.

BUG=
R=kmillikin@google.com

Committed: ac75893964

Reverted: 988b65336b

Review URL: https://codereview.chromium.org//1195573003.
2015-06-23 13:17:59 +02:00
Søren Gjesse
22d9f804b4 Use temp dir in the test standalone/io/file_write_only_test
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1196253009.
2015-06-23 12:56:07 +02:00
Asger Feldthaus
56158b54a1 dart2cps: Fix bug in constructors.
When visiting another constructor, the visitor must use another tree elements mapping (and source file info).

BUG=
R=floitsch@google.com

Committed: 4a1e6c7966

Reverted: 382319fe70

Review URL: https://codereview.chromium.org//1200823002.
2015-06-23 10:55:02 +02:00
Stephan Herhut
1057e73019 dart2js: Avoid Object.create for bookeeping data structures during startup.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//1193423002.
2015-06-23 10:38:16 +02:00
Daniel Andersson
649719278a Assert no VM handles are created in the zone that belongs to a ApiNativeScope.
Update snapshot_test, which was violating this principle.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org//1191443008.
2015-06-22 17:19:01 -07:00
Stephen Adams
afe5b32e48 Fix for issue 23432.
Get the correct receiver in noSuchMethod stubs.

noSuchMethod stubs for selectors with Interceptor calling convention should pass the receiver to noSuchMethod (not 'this').  The actual receiver is selected by Object.noSuchMethod and Interceptor.noSuchMethod.

R=floitsch@google.com

Committed: c8d7cd8ef4

Reverted: 21a322fd99

Review URL: https://codereview.chromium.org//1181063005.
2015-06-22 17:02:21 -07:00
danrubel
e43c98a13c rework packageMapInfo dependency watching to avoid race condition
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1199083002.
2015-06-22 19:19:09 -04:00
Srdjan Mitrovic
e91b99b66d Fix crash in modPow (issue 23693); various bigint knowledge missing.
BUG=
R=regis@google.com

Review URL: https://codereview.chromium.org//1197263002.
2015-06-22 15:11:36 -07:00
danrubel
679de372f4 gracefully degrade if package map input file cannot be watched
BUG=

Review URL: https://codereview.chromium.org//1198423002.
2015-06-22 17:07:12 -04:00
John McCutchan
983395f5f3 Misc service fixes
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1202583002.
2015-06-22 13:59:23 -07:00
Stephen Adams
21a322fd99 Revert "Fix for issue 23432."
Reverted while investigating failed tests.

TBR=sigmund@google.com

Review URL: https://codereview.chromium.org//1203523003.
2015-06-22 13:46:29 -07:00
Stephen Adams
c8d7cd8ef4 Fix for issue 23432.
Get the correct receiver in noSuchMethod stubs.

noSuchMethod stubs for selectors with Interceptor calling convention should pass the receiver to noSuchMethod (not 'this').  The actual receiver is selected by Object.noSuchMethod and Interceptor.noSuchMethod.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1181063005.
2015-06-22 13:16:05 -07:00
Matthias Hausner
84be183a32 Library prefixes used to be invisible. The newest spec treats them as objects, but it's a compile-time error to do most anything with them.
This change brings the VM in compliance with the current spec.

BUG=23612
R=iposva@google.com

Review URL: https://codereview.chromium.org//1201523002.
2015-06-22 13:01:29 -07:00
Ivan Posva
d0d5185550 - Status file tuning.
BUG=

Review URL: https://codereview.chromium.org//1199593004.
2015-06-22 12:47:18 -07:00
Ivan Posva
d9da805f07 - Split big integer tests into pieces.
BUG=
R=srdjan@google.com

Review URL: https://codereview.chromium.org//1198993003.
2015-06-22 12:22:14 -07:00
Konstantin Shcheglov
5cf6c26ecd Use List instead of Set for library sources.
This slightly improves WorkOrder.moveNext tag performance.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1193033003.
2015-06-22 12:00:09 -07:00
Srdjan Mitrovic
aa8ea6da27 Enable TryCreateICData optimization, disable crashing test in status file
BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org//1198333004.
2015-06-22 10:58:51 -07:00
Asger Feldthaus
382319fe70 Revert "dart2cps: Fix bug in constructors."
This reverts commit 4a1e6c7966.

TBR=floitsch@google.com

BUG=

Review URL: https://codereview.chromium.org//1195393005.
2015-06-22 19:35:24 +02:00
Asger Feldthaus
988b65336b Revert "dart2js cps: Refactor and optimize string concatenations."
This reverts commit ac75893964.

TBR=kmillikin@google.com

BUG=

Review URL: https://codereview.chromium.org//1201753004.
2015-06-22 19:34:11 +02:00
Konstantin Shcheglov
19a87506bc Fix for the server test.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1196213005.
2015-06-22 10:03:06 -07:00
Alan Knight
1d5b657427 Make it easier and more efficient to use trusted HTML text
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org//1154423009.
2015-06-22 09:41:01 -07:00
Brian Wilkerson
a087d36d78 Deprecate old HTML support
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1200913002.
2015-06-22 09:32:18 -07:00
Asger Feldthaus
ac75893964 dart2js cps: Refactor and optimize string concatenations.
The ConcatenateStrings IR node has been removed. It was a leftover from
dart2dart.

Expressions inside string interpolations are now stringified explicitly
and we concatenate strings with a pure StringConcat operator.

ConstantExpressions have also been removed from the IR. They were also
an artifact from dart2dart and were complicating the optimizer.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1195573003.
2015-06-22 18:08:44 +02:00
Asger Feldthaus
4a1e6c7966 dart2cps: Fix bug in constructors.
When visiting another constructor, the visitor must use another tree elements mapping (and source file info).

BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//1200823002.
2015-06-22 17:53:47 +02:00
Konstantin Shcheglov
e9c3b2d7b1 Move cache consistency validation into Analysis Server.
This speeds up the add/analyze/remove/analyze cycle from 1600 ms to
1300 ms, i.e. on about 20%.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1195183002.
2015-06-22 08:19:44 -07:00
Kevin Millikin
7a853ca634 Fix a bug in dart2js's shrinking reductions.
When a term is deleted, the algorithm searches for new redexes created
by the term's deletion.  Continuation beta redexes search up the term
between the redex and the continuation's binding to ensure that the
continuation is not moved into the scope of an exception handler.

This search fails if it first encounters the root of the deleted
subterm (i.e., the newly-created redex is in the deleted term).  Just
ignore the redex in that case, since the term is being deleted.

Also, update some triaged test expectations with their bug numbers.

R=asgerf@google.com

Review URL: https://codereview.chromium.org//1196323002.
2015-06-22 16:50:48 +02:00
Lasse R.H. Nielsen
78a3db3128 Revert "Add Resource class. Currently unimplemented."
This reverts commit 2890a7a2a9.

Causes a dart2js test error and a significant amount of analyzer
warnings.

Review URL: https://codereview.chromium.org//1193273003.
2015-06-22 16:43:44 +02:00
Daniel Andersson
2789021e45 Fix --verify_handles mode by properly checking for the static API handles.
This was an omission from 9a5dc19140.
Also set this flag and --verify_on_transition in CustomIsolateTest to extend coverage.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org//1173293007.
2015-06-22 07:19:56 -07:00
Asger Feldthaus
2f3b889c7b dart2js cps: Replace getter/setter calls with direct field access.
.length on JS arrays are not introduced yet because that is not
seen as field accesses by our class hierarchy.

I've changed the contract on Primitives so they can have side effects,
depend on state, diverge, throw, anything goes. GetField on possibly
null receivers would not be allowed otherwise.

AFAIK there are no optimizations that actually used the contract on
primitives, it just seemed like a good idea at one point in the past,
so that change only affects a single doc comment.

I'll migrate some of the classes that can now be primitives in another
CL.

BuiltinOperators are still required to be pure, although that too may
possibly change soon.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1188253006.
2015-06-22 16:08:51 +02:00
Lasse R.H. Nielsen
2890a7a2a9 Add Resource class. Currently unimplemented.
R=herhut@google.com, iposva@google.com

Review URL: https://codereview.chromium.org//1181663002.
2015-06-22 15:05:14 +02:00
danrubel
d907a4265e (TBR) improve integration test failure message
BUG=

Review URL: https://codereview.chromium.org//1194393002.
2015-06-22 07:04:28 -04:00
Asger Feldthaus
919eadc29d dart2js cps: Overhaul PullIntoInitializers.
Fixes a bug where it would pull impure expressions out of branches.

It now uses a slightly more precise analysis to pull more things into
the initializer block (but never out of branch).

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1188783002.
2015-06-22 12:26:22 +02:00
Kevin Millikin
bf595224d5 Implement simple switch statements as nested if/else.
Simple switch statements that do not have continue to labeled cases
are compiled into a chain if/else comparisons.

R=asgerf@google.com

Review URL: https://codereview.chromium.org//1191193005.
2015-06-22 11:29:31 +02:00
Brian Wilkerson
c891a348ab Next steps toward HTML support
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1193143002.
2015-06-21 09:21:42 -07:00
danrubel
f3a1297576 fix tests
BUG=

Review URL: https://codereview.chromium.org//1191363003.
2015-06-20 18:20:46 -04:00
Dan Rubel
eb95064511 recompute package map when input file changes
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1180843011.
2015-06-20 17:18:54 -04:00
Dan Rubel
f550b8d76e add file watching support
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1191933004.
2015-06-20 15:03:14 -04:00
Dan Rubel
8b9578ef26 add for() keyword suggestion
BUG=
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1179283007.
2015-06-20 15:01:20 -04:00