| 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 #include <math.h> | 5 #include <math.h> |
| 6 #include <stdarg.h> | 6 #include <stdarg.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 LOGI("Done setup"); | 230 LOGI("Done setup"); |
| 231 return rtn; | 231 return rtn; |
| 232 } | 232 } |
| 233 return 0; | 233 return 0; |
| 234 } | 234 } |
| 235 | 235 |
| 236 int VMGlue::CallUpdate() { | 236 int VMGlue::CallUpdate() { |
| 237 if (initialized_script_) { | 237 if (initialized_script_) { |
| 238 Dart_EnterIsolate(isolate_); | 238 Dart_EnterIsolate(isolate_); |
| 239 Dart_EnterScope(); | 239 Dart_EnterScope(); |
| 240 int rtn = Invoke("update", 0, 0); | 240 int rtn = Invoke("update_", 0, 0); |
| 241 Dart_ExitScope(); | 241 Dart_ExitScope(); |
| 242 Dart_ExitIsolate(); | 242 Dart_ExitIsolate(); |
| 243 return rtn; | 243 return rtn; |
| 244 } | 244 } |
| 245 return -1; | 245 return -1; |
| 246 } | 246 } |
| 247 | 247 |
| 248 int VMGlue::CallShutdown() { | 248 int VMGlue::CallShutdown() { |
| 249 if (initialized_script_) { | 249 if (initialized_script_) { |
| 250 Dart_EnterIsolate(isolate_); | 250 Dart_EnterIsolate(isolate_); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 335 |
| 336 void VMGlue::FinishMainIsolate() { | 336 void VMGlue::FinishMainIsolate() { |
| 337 LOGI("Finish main isolate"); | 337 LOGI("Finish main isolate"); |
| 338 Dart_EnterIsolate(isolate_); | 338 Dart_EnterIsolate(isolate_); |
| 339 // Shutdown the isolate. | 339 // Shutdown the isolate. |
| 340 Dart_ShutdownIsolate(); | 340 Dart_ShutdownIsolate(); |
| 341 isolate_ = NULL; | 341 isolate_ = NULL; |
| 342 initialized_script_ = false; | 342 initialized_script_ = false; |
| 343 } | 343 } |
| 344 | 344 |
| OLD | NEW |