OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/isolate.h" | 5 #include "vm/isolate.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/json.h" | 10 #include "platform/json.h" |
(...skipping 2594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2605 return DeserializeObject(thread, serialized_args_, serialized_args_len_); | 2605 return DeserializeObject(thread, serialized_args_, serialized_args_len_); |
2606 } | 2606 } |
2607 | 2607 |
2608 | 2608 |
2609 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { | 2609 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { |
2610 return DeserializeObject(thread, | 2610 return DeserializeObject(thread, |
2611 serialized_message_, serialized_message_len_); | 2611 serialized_message_, serialized_message_len_); |
2612 } | 2612 } |
2613 | 2613 |
2614 | 2614 |
2615 void IsolateSpawnState::Cleanup() { | |
2616 SwitchIsolateScope switch_scope(I); | |
2617 Dart::ShutdownIsolate(); | |
2618 } | |
2619 | |
2620 } // namespace dart | 2615 } // namespace dart |
OLD | NEW |