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