OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_DART_API_STATE_H_ | 5 #ifndef RUNTIME_VM_DART_API_STATE_H_ |
6 #define VM_DART_API_STATE_H_ | 6 #define RUNTIME_VM_DART_API_STATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 | 9 |
10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
11 #include "vm/bitfield.h" | 11 #include "vm/bitfield.h" |
12 #include "vm/dart_api_impl.h" | 12 #include "vm/dart_api_impl.h" |
13 #include "vm/flags.h" | 13 #include "vm/flags.h" |
14 #include "vm/growable_array.h" | 14 #include "vm/growable_array.h" |
15 #include "vm/handles.h" | 15 #include "vm/handles.h" |
16 #include "vm/object.h" | 16 #include "vm/object.h" |
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 ref->set_peer(peer); | 819 ref->set_peer(peer); |
820 ref->set_callback(callback); | 820 ref->set_callback(callback); |
821 ref->set_is_queued_for_finalization(false); | 821 ref->set_is_queued_for_finalization(false); |
822 // This may trigger GC, so it must be called last. | 822 // This may trigger GC, so it must be called last. |
823 ref->SetExternalSize(external_size, isolate); | 823 ref->SetExternalSize(external_size, isolate); |
824 return ref; | 824 return ref; |
825 } | 825 } |
826 | 826 |
827 } // namespace dart | 827 } // namespace dart |
828 | 828 |
829 #endif // VM_DART_API_STATE_H_ | 829 #endif // RUNTIME_VM_DART_API_STATE_H_ |
OLD | NEW |