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

The "var_base#12" form in IR is ambiguous and can lead to errors. #1

Open
vsmenon opened this issue Apr 3, 2013 · 0 comments
Open

Comments

@vsmenon
Copy link
Owner

vsmenon commented Apr 3, 2013

Currently, the start compiler uses appends "_base" or "_offset" to a variable in the IR to indicate how to interpret it. E.g.,

  • x#8 resolves to *(FP+8)
  • x_base#8 resolves to 8

This is ambiguous if the variable actually ends in "_base". E.g., the following code runs incorrectly in Start.

import 'stdio.dart';

void main() {
int int_base;

int_base = 10;
WriteLong(int_base);
WriteLine();
}

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