| 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 VM_DART_API_STATE_H_ |
| 6 #define VM_DART_API_STATE_H_ | 6 #define VM_DART_API_STATE_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "platform/thread.h" | |
| 11 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| 12 #include "vm/bitfield.h" | 11 #include "vm/bitfield.h" |
| 13 #include "vm/dart_api_impl.h" | 12 #include "vm/dart_api_impl.h" |
| 14 #include "vm/flags.h" | 13 #include "vm/flags.h" |
| 15 #include "vm/growable_array.h" | 14 #include "vm/growable_array.h" |
| 16 #include "vm/handles.h" | 15 #include "vm/handles.h" |
| 17 #include "vm/object.h" | 16 #include "vm/object.h" |
| 18 #include "vm/os.h" | 17 #include "vm/os.h" |
| 19 #include "vm/raw_object.h" | 18 #include "vm/raw_object.h" |
| 19 #include "vm/thread.h" |
| 20 #include "vm/visitor.h" | 20 #include "vm/visitor.h" |
| 21 | 21 |
| 22 #include "vm/handles_impl.h" | 22 #include "vm/handles_impl.h" |
| 23 | 23 |
| 24 namespace dart { | 24 namespace dart { |
| 25 | 25 |
| 26 DECLARE_DEBUG_FLAG(bool, trace_zones); | 26 DECLARE_DEBUG_FLAG(bool, trace_zones); |
| 27 DECLARE_DEBUG_FLAG(bool, trace_handles); | 27 DECLARE_DEBUG_FLAG(bool, trace_handles); |
| 28 | 28 |
| 29 // Implementation of Zone support for very fast allocation of small chunks | 29 // Implementation of Zone support for very fast allocation of small chunks |
| (...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 ref->set_peer(peer); | 970 ref->set_peer(peer); |
| 971 ref->set_callback(callback); | 971 ref->set_callback(callback); |
| 972 // This may trigger GC, so it must be called last. | 972 // This may trigger GC, so it must be called last. |
| 973 ref->SetExternalSize(external_size, isolate); | 973 ref->SetExternalSize(external_size, isolate); |
| 974 return ref; | 974 return ref; |
| 975 } | 975 } |
| 976 | 976 |
| 977 } // namespace dart | 977 } // namespace dart |
| 978 | 978 |
| 979 #endif // VM_DART_API_STATE_H_ | 979 #endif // VM_DART_API_STATE_H_ |
| OLD | NEW |