| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | |
| 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.md file. | |
| 4 | |
| 5 #include "src/shared/fletch.h" | |
| 6 | |
| 7 #include "src/shared/platform.h" | |
| 8 | |
| 9 #include "src/vm/event_handler.h" | |
| 10 #include "src/vm/ffi.h" | |
| 11 #include "src/vm/object_memory.h" | |
| 12 #include "src/vm/object.h" | |
| 13 #include "src/vm/preempter.h" | |
| 14 #include "src/vm/scheduler.h" | |
| 15 #include "src/vm/thread.h" | |
| 16 | |
| 17 namespace fletch { | |
| 18 | |
| 19 void Fletch::Setup() { | |
| 20 Platform::Setup(); | |
| 21 Thread::Setup(); | |
| 22 ObjectMemory::Setup(); | |
| 23 StaticClassStructures::Setup(); | |
| 24 ForeignFunctionInterface::Setup(); | |
| 25 EventHandler::Setup(); | |
| 26 Scheduler::Setup(); | |
| 27 Preempter::Setup(); | |
| 28 } | |
| 29 | |
| 30 void Fletch::TearDown() { | |
| 31 Preempter::TearDown(); | |
| 32 Thread::TearDown(); | |
| 33 Scheduler::TearDown(); | |
| 34 EventHandler::TearDown(); | |
| 35 ForeignFunctionInterface::TearDown(); | |
| 36 StaticClassStructures::TearDown(); | |
| 37 ObjectMemory::TearDown(); | |
| 38 Platform::TearDown(); | |
| 39 } | |
| 40 | |
| 41 } // namespace fletch | |
| OLD | NEW |