| Index: vm/dart_api_impl.cc
|
| ===================================================================
|
| --- vm/dart_api_impl.cc (revision 6862)
|
| +++ vm/dart_api_impl.cc (working copy)
|
| @@ -396,14 +396,11 @@
|
| }
|
|
|
|
|
| -DART_EXPORT Dart_Handle Dart_IsSame(Dart_Handle obj1, Dart_Handle obj2,
|
| - bool* value) {
|
| +DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2) {
|
| Isolate* isolate = Isolate::Current();
|
| - DARTSCOPE(isolate);
|
| - const Object& expected = Object::Handle(isolate, Api::UnwrapHandle(obj1));
|
| - const Object& actual = Object::Handle(isolate, Api::UnwrapHandle(obj2));
|
| - *value = (expected.raw() == actual.raw());
|
| - return Api::Success(isolate);
|
| + CHECK_ISOLATE(isolate);
|
| + NoGCScope ngc;
|
| + return Api::UnwrapHandle(obj1) == Api::UnwrapHandle(obj2);
|
| }
|
|
|
|
|
|
|