| 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 "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "platform/json.h" | 9 #include "platform/json.h" |
| 10 #include "lib/mirrors.h" | 10 #include "lib/mirrors.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 if (result.IsError()) { | 146 if (result.IsError()) { |
| 147 success = ProcessUnhandledException(msg, Error::Cast(result)); | 147 success = ProcessUnhandledException(msg, Error::Cast(result)); |
| 148 } else { | 148 } else { |
| 149 ASSERT(result.IsNull()); | 149 ASSERT(result.IsNull()); |
| 150 } | 150 } |
| 151 } | 151 } |
| 152 delete message; | 152 delete message; |
| 153 return success; | 153 return success; |
| 154 } | 154 } |
| 155 | 155 |
| 156 |
| 156 RawFunction* IsolateMessageHandler::ResolveCallbackFunction() { | 157 RawFunction* IsolateMessageHandler::ResolveCallbackFunction() { |
| 157 ASSERT(isolate_->object_store()->unhandled_exception_handler() != NULL); | 158 ASSERT(isolate_->object_store()->unhandled_exception_handler() != NULL); |
| 158 String& callback_name = String::Handle(isolate_); | 159 String& callback_name = String::Handle(isolate_); |
| 159 if (isolate_->object_store()->unhandled_exception_handler() != | 160 if (isolate_->object_store()->unhandled_exception_handler() != |
| 160 String::null()) { | 161 String::null()) { |
| 161 callback_name = isolate_->object_store()->unhandled_exception_handler(); | 162 callback_name = isolate_->object_store()->unhandled_exception_handler(); |
| 162 } else { | 163 } else { |
| 163 callback_name = String::New("_unhandledExceptionCallback"); | 164 callback_name = String::New("_unhandledExceptionCallback"); |
| 164 } | 165 } |
| 165 Library& lib = | 166 Library& lib = |
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 return func.raw(); | 1199 return func.raw(); |
| 1199 } | 1200 } |
| 1200 | 1201 |
| 1201 | 1202 |
| 1202 void IsolateSpawnState::Cleanup() { | 1203 void IsolateSpawnState::Cleanup() { |
| 1203 SwitchIsolateScope switch_scope(isolate()); | 1204 SwitchIsolateScope switch_scope(isolate()); |
| 1204 Dart::ShutdownIsolate(); | 1205 Dart::ShutdownIsolate(); |
| 1205 } | 1206 } |
| 1206 | 1207 |
| 1207 } // namespace dart | 1208 } // namespace dart |
| OLD | NEW |