| Index: dart/lib/compiler/implementation/js_backend/native_emitter.dart
|
| diff --git a/dart/lib/compiler/implementation/js_backend/native_emitter.dart b/dart/lib/compiler/implementation/js_backend/native_emitter.dart
|
| index 129343642543ac4b274c0ef0e9618d79edcad1a8..647fab4f38af7ac01846251a0add4bc0a1e74938 100644
|
| --- a/dart/lib/compiler/implementation/js_backend/native_emitter.dart
|
| +++ b/dart/lib/compiler/implementation/js_backend/native_emitter.dart
|
| @@ -84,6 +84,12 @@ class NativeEmitter {
|
| return backend.namer.isolateAccess(element);
|
| }
|
|
|
| + String get hashCodeHelperName {
|
| + Element element = compiler.findHelper(
|
| + const SourceString('hashCodeForNativeObject'));
|
| + return backend.namer.isolateAccess(element);
|
| + }
|
| +
|
| String get defineNativeClassName
|
| => '${backend.namer.CURRENT_ISOLATE}.\$defineNativeClass';
|
|
|
| @@ -417,6 +423,12 @@ function(cls, fields, methods) {
|
| objectProperties[toStringName] =
|
| 'function() { return $toStringHelperName(this); }';
|
|
|
| + // Same as above, but for hashCode.
|
| + String hashCodeName = backend.namer.publicInstanceMethodNameByArity(
|
| + const SourceString('hashCode'), 0);
|
| + objectProperties[hashCodeName] =
|
| + 'function() { return $hashCodeHelperName(this); }';
|
| +
|
| // If the native emitter has been asked to take care of the
|
| // noSuchMethod handlers, we do that now.
|
| if (handleNoSuchMethod) {
|
|
|