| Index: runtime/lib/function.cc
|
| diff --git a/runtime/lib/function.cc b/runtime/lib/function.cc
|
| index 0bd2c70d429b5d098b97b05524b2a60a447c9335..cf6e29813f2795baaafb582b6969b5f1d8f29bae 100644
|
| --- a/runtime/lib/function.cc
|
| +++ b/runtime/lib/function.cc
|
| @@ -68,10 +68,11 @@ DEFINE_NATIVE_ENTRY(Closure_equals, 2) {
|
| return Bool::False().raw();
|
| }
|
|
|
| -DEFINE_NATIVE_ENTRY(Closure_computeHash, 1) {
|
| +DEFINE_NATIVE_ENTRY(Closure_hashCode, 1) {
|
| const Closure& receiver =
|
| Closure::CheckedHandle(zone, arguments->NativeArgAt(0));
|
| - return Smi::New(receiver.ComputeHash());
|
| + const Function& func = Function::Handle(zone, receiver.function());
|
| + return func.GetClosureHashCode();
|
| }
|
|
|
| DEFINE_NATIVE_ENTRY(Closure_clone, 1) {
|
|
|