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

Google sync #1589

Merged
merged 10 commits into from
Feb 21, 2024
Merged

Google sync #1589

merged 10 commits into from
Feb 21, 2024

Conversation

rchen152
Copy link
Contributor

No description provided.

martindemello and others added 10 commits February 21, 2024 11:14
…of them.

Fixes a corner case where we encounter some opcode multiple times and therefore
decrement the count to zero with cases still unseen.

PiperOrigin-RevId: 606752843
Fixes []

PiperOrigin-RevId: 607109448
PiperOrigin-RevId: 607394904
…value().

* Teaches the VM how to create and store a class. For now, we're just storing
  the class body as an attribute of the class rather than evaluating it.
* Adds a `typ` parameter to get_atomic_value() so we can do both runtime and
  static checking when we get a variable's contents this way.
* Makes abstract.PythonConstant generic so that we can specify what type we
  expect the PythonConstant to hold. When used in conjunction with
  get_atomic_value, this is purely for documentation purposes; it's not
  checked at runtime and the type checker treats it as a blind cast.
* Adds an abstract.get_atomic_constant() shortcut.

PiperOrigin-RevId: 607586665
I also added a BaseValue.to_variable().

PiperOrigin-RevId: 607842596
This edge case is breaking type checking for us. Seems to be a tiny typo.

PiperOrigin-RevId: 608659169
Also adds a single pragma, "cache-return", as an example of the feature.

PiperOrigin-RevId: 608662267
Allows code to specify that a function should be run exactly once, and its
return value cached. The cached value is then used for all subsequent calls,
without reference to the callargs.

PiperOrigin-RevId: 608734790
Fixes #1587.

Startblock:
  after 2024-02-21 08:00 in US/Pacific
  and then
  add reviewer tsudol
PiperOrigin-RevId: 609053037
@rchen152 rchen152 merged commit f8b2634 into main Feb 21, 2024
22 checks passed
@rchen152 rchen152 deleted the google_sync branch February 21, 2024 20:22
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