Skip to content

Commit

Permalink
update docs for CodeInfo (#31445)
Browse files Browse the repository at this point in the history
  • Loading branch information
narendrakpatel authored and vtjnash committed Apr 3, 2019
1 parent e8a88c9 commit aee211b
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions doc/src/devdocs/ast.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,6 @@ A (usually temporary) container for holding lowered source code.

An array of symbols giving names for each slot (argument or local variable).

* `slottypes`

An array of types for the slots (e.g. variables).

* `slotflags`

A `UInt8` array of slot properties, represented as bit flags:
Expand Down Expand Up @@ -637,6 +633,21 @@ A (usually temporary) container for holding lowered source code.
An array of integer indices into the `linetable`, giving the location associated
with each statement.

Optional Fields:

* `slottypes`

An array of types for the slots.

* `rettype`

The inferred return type of the lowered form (IR). Default value is `Any`.

* `method_for_inference_limit_heuristics`

The `method_for_inference_heuristics` will expand the given method's generator if
necessary during inference.

* `parent`

The `MethodInstance` that "owns" this object (if applicable).
Expand All @@ -645,6 +656,7 @@ A (usually temporary) container for holding lowered source code.

The range of world ages for which this code was valid at the time when it had been inferred.


Boolean properties:

* `inferred`
Expand All @@ -657,7 +669,7 @@ Boolean properties:

* `propagate_inbounds`

Whether this should should propagate `@inbounds` when inlined, for the purpose of eliding
Whether this should propagate `@inbounds` when inlined for the purpose of eliding
`@boundscheck` blocks.

* `pure`
Expand Down

2 comments on commit aee211b

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan

Please sign in to comment.