| Index: runtime/vm/intermediate_language.h
|
| diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
|
| index ff3822cf9754846491807a5a7f95e99c5ca8b044..07f1da47405c8ea036876b01befe2ec39fdc714f 100644
|
| --- a/runtime/vm/intermediate_language.h
|
| +++ b/runtime/vm/intermediate_language.h
|
| @@ -4485,6 +4485,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);
|
|
|