Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Issue 2880453005: Build up and pass MemoryFileSystem to fasta frontend. (Closed)

Created:
3 years, 7 months ago by aam
Modified:
3 years, 7 months ago
Reviewers:
ahe, scheglov, Paul Berry
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Build up and pass MemoryFileSystem to fasta frontend. Allow kernel service request to provide source files(filename, content), which will be used to build up MemoryFileSystem instance. MemoryFileSystem instance will be used instead of PhysicalFileSystem instance. Immediate need for this is to support VM unit testing, where small Dart scripts that have to be parsed are hardcoded in the unit tests. BUG=https://github.com/dart-lang/sdk/issues/28264 R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/089a355766d14c4b804c643fd927518387e25a9e

Patch Set 1 #

Patch Set 2 : Remove hardcoded true #

Patch Set 3 : Merge branch 'master' of github.com:dart-lang/sdk into build-memory-fs #

Total comments: 2

Patch Set 4 : Use Uint8List for raw file content #

Total comments: 2

Patch Set 5 : Use FileSystem instance to look for .packages file #

Patch Set 6 : Use integer division #

Patch Set 7 : Use integer division #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -13 lines) Patch
M pkg/front_end/lib/src/fasta/fasta.dart View 1 2 3 4 2 chunks +12 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/vm.dart View 1 2 3 4 4 chunks +14 lines, -4 lines 0 comments Download
M utils/kernel-service/kernel-service.dart View 1 2 3 4 5 4 chunks +25 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
aam
Hi folks, here are the changes I mentioned in the email few days ago. Please ...
3 years, 7 months ago (2017-05-11 18:37:34 UTC) #2
Paul Berry
https://codereview.chromium.org/2880453005/diff/40001/utils/kernel-service/kernel-service.dart File utils/kernel-service/kernel-service.dart (right): https://codereview.chromium.org/2880453005/diff/40001/utils/kernel-service/kernel-service.dart#newcode101 utils/kernel-service/kernel-service.dart:101: // can be used instead of PhysicalFileSystem.instance by the ...
3 years, 7 months ago (2017-05-11 21:11:53 UTC) #3
aam
https://codereview.chromium.org/2880453005/diff/40001/utils/kernel-service/kernel-service.dart File utils/kernel-service/kernel-service.dart (right): https://codereview.chromium.org/2880453005/diff/40001/utils/kernel-service/kernel-service.dart#newcode101 utils/kernel-service/kernel-service.dart:101: // can be used instead of PhysicalFileSystem.instance by the ...
3 years, 7 months ago (2017-05-11 23:02:59 UTC) #4
scheglov
lgtm https://codereview.chromium.org/2880453005/diff/60001/utils/kernel-service/kernel-service.dart File utils/kernel-service/kernel-service.dart (right): https://codereview.chromium.org/2880453005/diff/60001/utils/kernel-service/kernel-service.dart#newcode105 utils/kernel-service/kernel-service.dart:105: for (int i = 0; i < namedSources.length ...
3 years, 7 months ago (2017-05-12 00:48:59 UTC) #5
aam
Thank you, Konstantin. PTAL - I had to update vm.dart#_findPackagesFile so it also uses FileSystem ...
3 years, 7 months ago (2017-05-12 22:11:19 UTC) #6
scheglov
LGTM
3 years, 7 months ago (2017-05-13 23:57:44 UTC) #8
aam
3 years, 7 months ago (2017-05-15 15:44:42 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
089a355766d14c4b804c643fd927518387e25a9e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698