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

Const-JS stubs #27

Open
indutny opened this issue Nov 10, 2014 · 0 comments
Open

Const-JS stubs #27

indutny opened this issue Nov 10, 2014 · 0 comments
Milestone

Comments

@indutny
Copy link
Member

indutny commented Nov 10, 2014

Stubs should be written in JS without var and let statements (only with const statement). This does not mean that they should have JS semantics, we just need a transpiler from const-JS to CFG, so that it would create unique ids itself:

const x = 1 + 2 * 3
stubCall(stub('hello'), x)
block B1
  t0 = literal %2
  t1 = literal %3
  t2 = smiMul t0, t1
  t3 = literal %1
  x = smiAdd t3, t2
  t4 = stub %"hello"
  pushArg x
  stubCall t4, %1
@indutny indutny added this to the 1.0 milestone Nov 10, 2014
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

No branches or pull requests

1 participant