Skip to content

Commit

Permalink
[vm/sdk] add missing vm entry-point pragma
Browse files Browse the repository at this point in the history
Rationale:
This makes File/Directory/Link's fromRawPath
equivalent again, and unblocks the pending
loop-based inlining heuristic.

Reverted CL because of this bug:
https://dart-review.googlesource.com/c/sdk/+/81335

#34473
#32167

Change-Id: I769a8365ea32d6f6830d0dd8ef97fc6c2467fb90
Reviewed-on: https://dart-review.googlesource.com/c/81460
Reviewed-by: Vyacheslav Egorov <[email protected]>
Commit-Queue: Aart Bik <[email protected]>
  • Loading branch information
aartbik authored and [email protected] committed Oct 25, 2018
1 parent 8b20599 commit 74d058e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/lib/io/link.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ abstract class Link implements FileSystemEntity {
return overrides.createLink(path);
}

@pragma("vm:entry-point")
factory Link.fromRawPath(Uint8List rawPath) {
// TODO(bkonyi): handle overrides
return new _Link.fromRawPath(rawPath);
Expand Down

0 comments on commit 74d058e

Please sign in to comment.