| Index: runtime/vm/intermediate_language.h
|
| diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
|
| index 68430e4afae19239230c03e4a68500c6f9d87b6f..e017cf72e4c9b99f338f0ad972aadb7b7b4a2fb6 100644
|
| --- a/runtime/vm/intermediate_language.h
|
| +++ b/runtime/vm/intermediate_language.h
|
| @@ -4555,6 +4555,13 @@ class LoadFieldInstr : public TemplateDefinition<1, NoThrow> {
|
|
|
| bool IsImmutableLengthLoad() const;
|
|
|
| + // Try evaluating this load against the given constant value of
|
| + // the instance. Returns true if evaluation succeeded and
|
| + // puts result into result.
|
| + // Note: we only evaluate loads when we can ensure that
|
| + // instance has the field.
|
| + bool Evaluate(const Object& instance_value, Object* result);
|
| +
|
| virtual Definition* Canonicalize(FlowGraph* flow_graph);
|
|
|
| static MethodRecognizer::Kind RecognizedKindFromArrayCid(intptr_t cid);
|
|
|