2013-08-14 11:43:50 +00:00
|
|
|
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
2016-01-20 00:32:59 +00:00
|
|
|
class _Closure implements Function {
|
2013-08-14 11:43:50 +00:00
|
|
|
|
2016-01-20 00:32:59 +00:00
|
|
|
bool operator ==(other) native "Closure_equals";
|
2013-08-14 11:43:50 +00:00
|
|
|
|
2016-01-20 00:32:59 +00:00
|
|
|
int get hashCode native "Closure_hashCode";
|
2014-03-17 10:31:33 +00:00
|
|
|
|
2016-01-20 00:32:59 +00:00
|
|
|
_Closure get call => this;
|
2015-02-05 18:36:40 +00:00
|
|
|
|
2016-01-20 00:32:59 +00:00
|
|
|
_Closure _clone() native "Closure_clone";
|
|
|
|
|
2017-02-27 19:14:04 +00:00
|
|
|
// No instance fields should be declared before the following 3 fields whose
|
|
|
|
// offsets must be identical in Dart and C++.
|
|
|
|
|
|
|
|
// The following 3 fields are declared both in raw_object.h (for direct access
|
|
|
|
// from C++ code) and also here so that the offset-to-field map used by
|
|
|
|
// deferred objects is properly initialized.
|
|
|
|
// Caution: These fields are not Dart instances, but VM objects.
|
|
|
|
var instantiator_;
|
|
|
|
var function_;
|
|
|
|
var context_;
|
2013-08-14 11:43:50 +00:00
|
|
|
}
|