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 builtin function @handle() #1297

Merged
merged 39 commits into from
Aug 2, 2018

Commits on Aug 2, 2018

  1. src/all_types.hpp: add enums for Handle Builtin;

    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    e79c913 View commit details
    Browse the repository at this point in the history
  2. src/ir.cpp: wire-up IR for handle builtin;

    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    a9ea22d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cd18186 View commit details
    Browse the repository at this point in the history
  4. src/ir_print.cpp: support @handle();

    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    da5f3d5 View commit details
    Browse the repository at this point in the history
  5. test/cases/couroutines.zig: test @handle();

    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    9366a58 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a2e5691 View commit details
    Browse the repository at this point in the history
  7. src/codegen.cpp: add/throw error for @handle() in a non async context;

    Tracking Issue ziglang#1296 ;
    
    I removed/commented-out the assert checking for no errors since we now have some errors rendered.
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    81f4636 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0ee6502 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    db362be View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c1a3b0c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1f0040d View commit details
    Browse the repository at this point in the history
  12. src/ir.cpp: return promise->T instead of promise;

    Tracking Issue ziglang#1296 ;
    Thanks @andrewrk ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    fcf53b3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a8ea236 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    104bdb0 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c546f75 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    13ec5db View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    92cb330 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ca1b356 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    5e5685c View commit details
    Browse the repository at this point in the history
  20. src/ir.cpp: remove promise_symbol from suspend;

    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    b3cd65d View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    d3f6289 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    29057e5 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    244a7fd View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    b4ff464 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    efec3a0 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    a3705b4 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    9fe140a View commit details
    Browse the repository at this point in the history
  28. std/zig/parser_test.zig: update test to reflect that the promise symb…

    …ol is no in scope with suspend;
    
    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    bc032a8 View commit details
    Browse the repository at this point in the history
  29. test/cases/coroutine_await_struct.zig: update test to reflect that th…

    …e promise symbol is no in scope with suspend;
    
    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    79792a3 View commit details
    Browse the repository at this point in the history
  30. test/cases/coroutines.zig: update test to reflect that the promise sy…

    …mbol is no in scope with suspend;
    
    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    3241ada View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    9b3cebc View commit details
    Browse the repository at this point in the history
  32. test/compile_errors.zig: update test to reflect that the promise symb…

    …ol is no in scope with suspend;
    
    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    51955a5 View commit details
    Browse the repository at this point in the history
  33. doc/langref.html.in: update docs to reflect that the promise symbol i…

    …s no in scope with suspend;
    
    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    ff4a03f View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    5de9242 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    915e321 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    9bed23f View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    9b890d7 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    ac0a87d View commit details
    Browse the repository at this point in the history
  39. std/event: directly return @handle();

    Tracking Issue ziglang#1296 ;
    kristate committed Aug 2, 2018
    Configuration menu
    Copy the full SHA
    96a94e7 View commit details
    Browse the repository at this point in the history