-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert ANF changes and add a testcase for evaluation order (#6645)
* Revert ANF changes and add a testcase for evaluation order After careful consideration, we decided that the change in evaluation order that was accidentally introduced by the ANF changes should be considered a breaking change or arguably even a bug and should not land in 1.3.0. Therefore, this PR reverts the following commits: 1. 353d0da 2. a45b510 3. 04c7b2a 4. a624dd7 5. b3aab72 Other PRs mostly had trivial merge conflicts that I resolved. The two most interesting ones here are probably 1. #6576 which was easy to resolve and the change to return SEValue instead of SExpr is still nice and useful even if we do not need the guarantees. 2. it #6542 which required some changes since the constructors changed. If you want to review those changes in detail (they are pretty straightforward so not too important), it’s probably easiest to check out this PR and run ``` git diff 2cd2a8f daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/Compiler.scala ``` to see the diff to the parent commit of the first commit that introduced ANF. changelog_begin changelog_end
- Loading branch information
1 parent
9a135fa
commit 02c59d4
Showing
26 changed files
with
815 additions
and
1,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Copyright (c) 2020, Digital Asset (Switzerland) GmbH and/or its affiliates. | ||
-- All rights reserved. | ||
|
||
-- @ERROR Aborted: BOOM | ||
|
||
module EvaluationOrder where | ||
|
||
boom = scenario do | ||
let f x = error "BOOM" | ||
let _ = f 1 (error "BANG") | ||
let _ = f 1 2 | ||
pure () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/AExpr.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.