Chromium Code Reviews| Index: runtime/vm/object.cc |
| =================================================================== |
| --- runtime/vm/object.cc (revision 9951) |
| +++ runtime/vm/object.cc (working copy) |
| @@ -3793,6 +3793,9 @@ |
| return 2; // Instance, phase. |
| } |
| } |
| + if (kind() == RawFunction::kClosureFunction) { |
| + return 0; |
| + } |
| if (!is_static()) { |
|
Ivan Posva
2012/07/26 18:30:55
How about
if (!is_static() && (kind() != RawFunct
regis
2012/07/26 18:43:19
Done.
|
| return 1; // Receiver. |
| } |