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 "include/dart_native_api.h" | 5 #include "include/dart_native_api.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/dart_api_impl.h" | 8 #include "vm/dart_api_impl.h" |
9 #include "vm/dart_api_message.h" | 9 #include "vm/dart_api_message.h" |
10 #include "vm/dart_api_state.h" | 10 #include "vm/dart_api_state.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 *result = Api::Success(); | 76 *result = Api::Success(); |
77 } else { | 77 } else { |
78 *result = Api::NewHandle(isolate, error.raw()); | 78 *result = Api::NewHandle(isolate, error.raw()); |
79 } | 79 } |
80 } | 80 } |
81 | 81 |
82 | 82 |
83 DART_EXPORT Dart_Handle Dart_CompileAll() { | 83 DART_EXPORT Dart_Handle Dart_CompileAll() { |
84 Isolate* isolate = Isolate::Current(); | 84 Isolate* isolate = Isolate::Current(); |
85 DARTSCOPE(isolate); | 85 DARTSCOPE(isolate); |
86 Dart_Handle result = Api::CheckIsolateState(isolate); | 86 Dart_Handle result = Api::CheckAndFinalizePendingClasses(isolate); |
87 if (::Dart_IsError(result)) { | 87 if (::Dart_IsError(result)) { |
88 return result; | 88 return result; |
89 } | 89 } |
90 CHECK_CALLBACK_STATE(isolate); | 90 CHECK_CALLBACK_STATE(isolate); |
91 CompileAll(isolate, &result); | 91 CompileAll(isolate, &result); |
92 return result; | 92 return result; |
93 } | 93 } |
94 | 94 |
95 } // namespace dart | 95 } // namespace dart |
OLD | NEW |