Skip to content

Commit

Permalink
Merge PR #188: Fix dynamic metrics tool on core-lib/Benchmarks/All.ns
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr authored Oct 6, 2017
2 parents 4cb272e + 992ffbd commit c3e8381
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core-lib/Benchmarks/LanguageFeatures.ns
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class LanguageFeaturesSuite usingPlatform: platform andHarness: harness = (
singleRun = (
| sum v |
v:: Vector new.
v at: 1 put: 1.
v append: 1.
sum:: 0.
[sum < 1000]
whileTrue:
Expand Down
3 changes: 2 additions & 1 deletion src/tools/dym/MetricsCsvWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ private String operationType(final OperationProfile p, final Arguments a) {
p.getOperation().equals("sqrt") ||
p.getOperation().equals("sin") ||
p.getOperation().equals("cos") ||
p.getOperation().equals("asInteger")) {
p.getOperation().equals("asInteger") ||
p.getOperation().equals("round")) {
return typeCategory(a.getArgType(1));
} else if (p.getOperation().equals("as32BitUnsignedValue") ||
p.getOperation().equals("as32BitSignedValue")) {
Expand Down
Binary file modified tests/dym/expected-results.tar.bz2
Binary file not shown.

0 comments on commit c3e8381

Please sign in to comment.