Harry Terkelsen
67ab213718
dart2js: fix tests after moving to .packages in the SDK repo
...
R=sigmund@google.com
Review URL: https://codereview.chromium.org/2346053002 .
2016-09-16 12:07:31 -07:00
Sigmund Cherem
b741e3f0df
Make CompilerTask independent of compiler.
...
Now this base class only has logic for measuring time.
R=het@google.com , johnniwinther@google.com
Review URL: https://codereview.chromium.org/2000323006 .
2016-05-25 09:11:08 -07:00
Harry Terkelsen
bd4b74783f
fix tests
...
BUG=
Review URL: https://codereview.chromium.org/1892733003 .
2016-04-15 13:26:57 -07:00
Erik Ernst
586c43ac7e
Repeats and fixes the changes landed & reverted as CL 1789553003.
...
When landed, CL 1789553003 turned out to cause bot failures because
some libraries outside the compiler are importing compiler libraries
which have been updated. For instance, the tests in 'compiler/dart2js'
depend on several internal elements of the 'dart2js' compiler.
This CL updates these external dependents to work with the modified
library structure and class APIs of the compiler. A small adjustment
was applied to 'dart2js_incremental' as well.
No further dependents are believed to exist: Grepping in sdk for
relevant imports does not reveal any further imports of any of the
libraries in the compiler where the "interface" has changed, and
external clients are not supported (that is, imports in arbitrary
github repositories may or may not break if they use the compiler
internals, but we do not support this type of dependency so we won't
do anything to protect them against that type of breakage).
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org/1864433004 .
2016-04-05 17:26:07 +02:00
Sigmund Cherem
4f3a7cb86e
Move all flags to CompilerOptions (first step to stop passing the compiler to
...
just get the options in the future).
BUG=
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org/1803303002 .
2016-03-17 16:42:02 -07:00
Sigurd Meldgaard
c0d5f73bd0
Introduce "platform configurations" to replace categories and libraries.dart.
...
A small writeup of the thoughts behind this concept can be found at:
https://docs.google.com/a/google.com/document/d/1WkqJVPphuThH8h2jDqBOb6h1iMkrkQIO7PF638-qlso/edit?usp=sharing
BUG=
R=floitsch@google.com , johnniwinther@google.com , whesse@google.com
Review URL: https://codereview.chromium.org/1408253006 .
2015-11-02 13:02:25 +01:00
Sigurd Meldgaard
e3b926849f
Rename apiimpl.Compiler to CompilerImpl.
...
BUG=
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org/1409803006 .
2015-10-29 13:23:55 +01:00
John McCutchan
98638457ce
Remove final users of dart:profiler library
...
BUG=
R=turnidge@google.com
Review URL: https://codereview.chromium.org/1394533002 .
2015-10-07 09:27:22 -07:00
Johnni Winther
2888b210a4
Remove hints in build of try
...
Closes #24470 and #24435
This doesn't fix the underlying (but unreported!) errors.
R=whesse@google.com
Review URL: https://codereview.chromium.org//1384473002 .
2015-10-01 13:32:16 +02:00
Johnni Winther
f2b7b06bb9
Fix try
...
BUG=
Review URL: https://codereview.chromium.org//1376413002 .
2015-10-01 12:24:38 +02:00
Johnni Winther
7ef93ef03a
Make the universe parts into small libraries.
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1348063002 .
2015-09-16 15:09:14 +02:00
Johnni Winther
d6db26f912
Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller libraries
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1311783012 .
2015-09-02 15:55:19 +02:00
Johnni Winther
ee54b9e3cd
Move parser and token related libraries into their own subfolder.
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1313073007 .
2015-09-02 12:07:00 +02:00
Johnni Winther
f5a7be0c17
Split scannerlib.dart into several libraries.
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1315483006 .
2015-09-01 15:39:31 +02:00
Johnni Winther
930bc75c0d
Move diagnostic_listener.dart and messages.dart to the diagnostics folder
...
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//1286143003 .
2015-08-12 12:05:36 +02:00
Johnni Winther
a7c720f61b
Remove dart2jslib.dart
...
dart2jslib.dart is deleted
compiler.dart is a library containing mainly Compiler
other parts of compiler.dart move according to the listing in https://codereview.chromium.org/1280343002/
R=sigmund@google.com
Review URL: https://codereview.chromium.org//1284593003 .
2015-08-12 08:42:46 +02:00
Johnni Winther
dab1aaae45
Move dart2jslib parts into separate libraries.
...
BUG=
R=karlklose@google.com , sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/4474acf36bb3b7d10a6fcce0c03de499055401e2
Reverted: https://github.com/dart-lang/sdk/commit/5af48434320f973bd8ae0fd402d9e33f5765420a
Review URL: https://codereview.chromium.org//1284673003 .
2015-08-11 09:56:49 +02:00
Sigmund Cherem
70b6cd5c15
dart2js: fix try/poi after refactor
...
Review URL: https://codereview.chromium.org//1234873006 .
2015-07-13 16:04:53 -07:00
Johnni Winther
ddf8ec8169
Fix try/poi.
...
BUG=
Review URL: https://codereview.chromium.org//1237663005 .
2015-07-13 21:28:12 +02:00
Johnni Winther
0da5b34305
Add interfaces for a new compiler API.
...
Main changes are in the added files, compiler/compiler.dart, src/compiler.dart and src/apiimpl.dart.
Start by looking at compiler/compiler_new.dart and compiler/compiler.dart.
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//1235563003 .
2015-07-13 21:15:23 +02:00
Florian Loitsch
ec398a7385
dart2js: Rename "current isolate" to "static state (holder)".
...
R=herhut@google.com
Review URL: https://codereview.chromium.org//1232463007 .
2015-07-10 19:08:11 +02:00
Florian Loitsch
cf4eca0975
dart2js: Rename old emitter to full emitter and make it its own library.
...
R=herhut@google.com
Review URL: https://codereview.chromium.org//1223293002 .
2015-07-09 15:54:38 +02:00
Florian Loitsch
d5343f4ebe
dart2js: Remove oldEmitter field in emitter-task.
...
R=herhut@google.com
Review URL: https://codereview.chromium.org//1226733010 .
2015-07-09 15:52:53 +02:00
Florian Loitsch
660a3846a1
Stop tracking constants in the incremental compiler.
...
They are not exposed by the backend anymore.
Review URL: https://codereview.chromium.org//1221803009 .
2015-07-08 16:02:27 +02:00
Florian Loitsch
21b3463d81
dart2js: Move most of the code_emitter_task code into the program-builder.
...
R=herhut@google.com
Review URL: https://codereview.chromium.org//1227643003 .
2015-07-08 12:53:42 +02:00
Florian Loitsch
b51980f089
Fix try.
...
Review URL: https://codereview.chromium.org//1223953002 .
2015-07-07 15:45:15 +02:00
Sigmund Cherem
b18c5a3e7c
sdk files reorganization to make dart2js a proper package
...
BUG=
R=brianwilkerson@google.com , floitsch@google.com , whesse@google.com
Review URL: https://codereview.chromium.org//1212513002 .
2015-06-29 10:21:14 -07:00
Harry Terkelsen
63681d5b59
Support Package Resolution Configuration files.
...
BUG=http://dartbug.com/23371
R=johnniwinther@google.com
Committed: https://github.com/dart-lang/sdk/commit/36c29d05bcc1dfe43a2f95698df5b41857f93221
Review URL: https://codereview.chromium.org//1162363004 .
2015-06-09 11:07:11 -07:00
Harry Terkelsen
fcd407b0cf
Revert "Support Package Resolution Configuration files."
...
This reverts commit 36c29d05bc .
BUG=
Review URL: https://codereview.chromium.org//1165943005
2015-06-04 15:55:13 -07:00
Harry Terkelsen
36c29d05bc
Support Package Resolution Configuration files.
...
BUG=http://dartbug.com/23371
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//1162363004
2015-06-04 15:15:09 -07:00
Stephan Herhut
03917ffe4d
dart2js: Construct the entire output as a single AST before printing.
...
BUG=
R=floitsch@google.com , sra@google.com
Review URL: https://codereview.chromium.org//1140703006
2015-05-20 12:31:31 +02:00
johnmccutchan@google.com
f01c1490f7
Revert 45783
...
BUG=
Review URL: https://codereview.chromium.org//1138993005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45784 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-14 00:32:32 +00:00
johnmccutchan@google.com
95515238cc
Move 'dart:profiler' contents into 'dart:developer' and remove 'dart:profiler'
...
BUG=
R=iposva@google.com
Review URL: https://codereview.chromium.org//1139503002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45783 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-13 23:48:04 +00:00
zarah@google.com
14836d31f2
dart2js: remove first argument from lazy function.
...
R=herhut@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44660
Reverted: https://code.google.com/p/dart/source/detail?r=44665
Review URL: https://codereview.chromium.org//1029003002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44776 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-30 08:19:27 +00:00
herhut@google.com
5e5df130cc
Ensure that collectedClasses always contains a [globalObject, descriptor] pair.
...
BUG=
R=zarah@google.com
Review URL: https://codereview.chromium.org//993573002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44322 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-09 15:14:45 +00:00
asgerf@google.com
f51b6e7c5d
Updated renamed methods from Namer class in library_updater.dart.
...
BUG=
Review URL: https://codereview.chromium.org//962593006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44094 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-27 15:52:08 +00:00
johnniwinther@google.com
1ea67720a6
Refactor SourceFile, SourceFileProvider and SourceLocation.
...
Main changes in:
pkg/compiler/lib/src/io/source_file.dart
pkg/compiler/lib/src/io/source_information.dart
pkg/compiler/lib/src/source_file_provider.dart
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//925943002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43756 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-13 14:02:32 +00:00
sra@google.com
5852e9ef90
Redo "Steps towards making dart2js JS AST templates an indepentent library."
...
Adds fix for dart2js_incremental
TBR=floitsch@google.com
Review URL: https://codereview.chromium.org//917033002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43712 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 01:58:01 +00:00
floitsch@google.com
b06ece7160
dart2js: Rename metadataEmitter to metadataCollector and make it independent of old emitter.
...
R=herhut@google.com
Review URL: https://codereview.chromium.org//869093003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43293 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 16:05:58 +00:00
herhut@google.com
d7d9541c39
Suffix temporary API for incremental compilation in program_builder with HackForIncrementalCompilation.
...
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//887663002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43286 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 14:50:21 +00:00
herhut@google.com
4183152a6a
Fix wrong type annotation in incremental compiler.
...
BUG=
TBR=floitsch@google.com
Review URL: https://codereview.chromium.org//875803003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43284 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 14:25:09 +00:00
herhut@google.com
52473bd7ba
Move computation of method flags into model.
...
BUG=
R=floitsch@google.com , zarah@google.com
Review URL: https://codereview.chromium.org//882713008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43279 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-29 12:56:04 +00:00
floitsch@google.com
993755261e
Address comments frorm https://codereview.chromium.org/871073002/
...
Review URL: https://codereview.chromium.org//885673002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43245 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-28 16:25:16 +00:00
floitsch@google.com
9f1e8b9c66
Fix incremental compiler.
...
Review URL: https://codereview.chromium.org//883503007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43179 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-27 12:49:43 +00:00
floitsch@google.com
d5377710ba
dart2js: native classes go through the normal code path.
...
R=herhut@google.com
Review URL: https://codereview.chromium.org//878553002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43178 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-27 12:14:55 +00:00
floitsch@google.com
7a3a84f249
dart2js: add work-around hack for try.
...
Review URL: https://codereview.chromium.org//871073002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43109 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-23 15:40:00 +00:00
ahe@google.com
3b1cb964ff
Push updates to browser.
...
R=kasperl@google.com
Review URL: https://codereview.chromium.org//847573003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43063 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-22 10:02:20 +00:00
ahe@google.com
34512168d9
Rename $dart_unsafe_eval to $dart_unsafe_incremental_support.
...
R=kasperl@google.com
Review URL: https://codereview.chromium.org//856333003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43061 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-22 09:50:07 +00:00
ahe@google.com
b7a74889cf
Server responds to compilation requests.
...
Changes are compiled incrementally and served from memory.
R=kasperl@google.com
Review URL: https://codereview.chromium.org//799373007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43010 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-20 14:31:55 +00:00
ahe@google.com
29003ae816
Refactor to use streams for reusability.
...
R=kasperl@google.com
Review URL: https://codereview.chromium.org//798583004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43009 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-20 14:29:16 +00:00