New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal problem: Unimplemented constant evaluation during expression evaluation #36479
Comments
/cc @aam |
You no longer need to manually update experimental_flags.dart, I've updated https://dart-review.googlesource.com/c/sdk/+/98485 to include it. If you also patch in https://dart-review.googlesource.com/c/sdk/+/98675 then it will re-enable expression compilation but we will not evaluate constants. This leaves two service test failures:
@a-siva could you get someone on the VM team to look into these and see if they are just different expectations or indicate a deeper problem? If there is no problem other than missing static checks on constants, then we could consider this a temporary solution. (Unfortunately, it requires keeping the old C++ constant evaluation code.) A better solution is to perform constant evaluation and serialize a constant pool back to the VM, but this doesn't match the way that things work right now so it will take some time. |
The test seems to rely on DART_SERVICE_USE_AUTH environment define https://github.com/dart-lang/sdk/blob/master/sdk/lib/vmservice/vmservice.dart#L45, which is not defined during platform.dill build. Switching from
|
It looks like @aam landed the above. Does this unblock us from flipping the const flag in the SDK? |
ping - @kmillikin @askeksa-google - is there work pending here? |
We need to land CL 98675 to enable expression compilation and then we are passing all the VM service tests with the constant-update-2018. |
I patched in CL 98675 and tried all the VM service tests and they pass with that patch. I think this issue can be closed after the CL lands. |
When ExperimentalFlag.constantUpdate2018 is turned on by default using the following patches
https://dart-review.googlesource.com/c/sdk/+/98485
https://dart-review.googlesource.com/c/sdk/+/98563
and setting ExperimentalFlag.constantUpdate2018 to true in https://github.com/dart-lang/sdk/blob/master/pkg/front_end/lib/src/api_prototype/experimental_flags.dart#L29
many service tests fail with the following stack trace
The text was updated successfully, but these errors were encountered: