| Index: runtime/vm/object.h
|
| ===================================================================
|
| --- runtime/vm/object.h (revision 4655)
|
| +++ runtime/vm/object.h (working copy)
|
| @@ -1232,9 +1232,13 @@
|
| void SetParameterNameAt(intptr_t index, const String& value) const;
|
| void set_parameter_names(const Array& value) const;
|
|
|
| - RawCode* code() const { return raw_ptr()->code_; }
|
| // Sets function's code and code's function.
|
| void SetCode(const Code& value) const;
|
| +
|
| + // Return the most recently compiled and installed code for this function.
|
| + // It is not the only Code object that points to this function.
|
| + RawCode* CurrentCode() const { return raw_ptr()->code_; }
|
| +
|
| RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; }
|
| void set_unoptimized_code(const Code& value) const;
|
| static intptr_t code_offset() { return OFFSET_OF(RawFunction, code_); }
|
| @@ -1358,6 +1362,8 @@
|
| }
|
| void set_is_optimizable(bool value) const;
|
|
|
| + bool HasOptimizedCode() const;
|
| +
|
| intptr_t NumberOfParameters() const;
|
|
|
| bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const;
|
| @@ -3718,7 +3724,7 @@
|
|
|
|
|
| bool Function::HasCode() const {
|
| - return code() != Code::null();
|
| + return raw_ptr()->code_ != Code::null();
|
| }
|
|
|
|
|
|
|