Skip to content
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

Add lambda and static objects #30

Merged
merged 10 commits into from
Sep 12, 2020
Merged

Add lambda and static objects #30

merged 10 commits into from
Sep 12, 2020

Conversation

water111
Copy link
Collaborator

Adds GOAL lambdas and the ability to immediately apply, inline, or call them. Adds static objects (currently string and function) and the ability to create/get address.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 251470461

  • 381 of 494 (77.13%) changed or added relevant lines in 32 files are covered.
  • 144 unchanged lines in 10 files lost coverage.
  • Overall coverage increased (+0.7%) to 58.075%

Changes Missing Coverage Covered Lines Changed/Added Lines %
goalc/compiler/IR.h 0 1 0.0%
goalc/compiler/StaticObject.h 1 2 50.0%
goalc/goos/Object.cpp 4 5 80.0%
goalc/compiler/Env.h 5 7 71.43%
goalc/compiler/Val.h 2 5 40.0%
goalc/compiler/compilation/Define.cpp 10 13 76.92%
goalc/compiler/Env.cpp 18 22 81.82%
goalc/compiler/Compiler.cpp 3 8 37.5%
goalc/compiler/StaticObject.cpp 21 26 80.77%
test/test_compiler_and_runtime.cpp 31 38 81.58%
Files with Coverage Reduction New Missed Lines %
goalc/compiler/compilation/Atoms.cpp 1 91.43%
goalc/compiler/Env.h 1 93.33%
goalc/compiler/Val.h 1 48.57%
goalc/emitter/IGen.h 2 98.42%
goalc/emitter/Register.cpp 2 86.67%
goalc/regalloc/IRegister.cpp 2 50.0%
goalc/regalloc/StackOp.h 6 6.67%
goalc/regalloc/Assignment.h 8 19.05%
goalc/regalloc/Allocator.cpp 34 58.72%
goalc/regalloc/allocate.cpp 87 24.48%
Totals Coverage Status
Change from base Build 248931543: 0.7%
Covered Lines: 11611
Relevant Lines: 19993

💛 - Coveralls

@water111 water111 merged commit d56540f into master Sep 12, 2020
@water111 water111 deleted the w/lambda branch September 12, 2020 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants