| 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 "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 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/thread.h" | 9 #include "vm/thread.h" |
| 10 #include "vm/unit_test.h" | 10 #include "vm/unit_test.h" |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 | 1343 |
| 1344 static void InterruptNativeFunction(Dart_NativeArguments args) { | 1344 static void InterruptNativeFunction(Dart_NativeArguments args) { |
| 1345 Dart_EnterScope(); | 1345 Dart_EnterScope(); |
| 1346 Dart_Handle val = Dart_NewBoolean(continue_isolate_loop); | 1346 Dart_Handle val = Dart_NewBoolean(continue_isolate_loop); |
| 1347 Dart_SetReturnValue(args, val); | 1347 Dart_SetReturnValue(args, val); |
| 1348 Dart_ExitScope(); | 1348 Dart_ExitScope(); |
| 1349 } | 1349 } |
| 1350 | 1350 |
| 1351 | 1351 |
| 1352 static Dart_NativeFunction InterruptNativeResolver(Dart_Handle name, | 1352 static Dart_NativeFunction InterruptNativeResolver(Dart_Handle name, |
| 1353 int arg_count) { | 1353 int arg_count, |
| 1354 bool* auto_setup_scope) { |
| 1355 ASSERT(auto_setup_scope != NULL); |
| 1356 *auto_setup_scope = false; |
| 1354 return &InterruptNativeFunction; | 1357 return &InterruptNativeFunction; |
| 1355 } | 1358 } |
| 1356 | 1359 |
| 1357 | 1360 |
| 1358 static void InterruptIsolateRun(uword unused) { | 1361 static void InterruptIsolateRun(uword unused) { |
| 1359 const char* kScriptChars = | 1362 const char* kScriptChars = |
| 1360 "void moo(s) { } \n" | 1363 "void moo(s) { } \n" |
| 1361 "class A { \n" | 1364 "class A { \n" |
| 1362 " static check() native 'a'; \n" | 1365 " static check() native 'a'; \n" |
| 1363 " static void foo() { \n" | 1366 " static void foo() { \n" |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2059 | 2062 |
| 2060 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); | 2063 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); |
| 2061 Dart_Handle super_type = Dart_GetSupertype(list_type); | 2064 Dart_Handle super_type = Dart_GetSupertype(list_type); |
| 2062 EXPECT(!Dart_IsError(super_type)); | 2065 EXPECT(!Dart_IsError(super_type)); |
| 2063 super_type = Dart_GetSupertype(super_type); | 2066 super_type = Dart_GetSupertype(super_type); |
| 2064 EXPECT(!Dart_IsError(super_type)); | 2067 EXPECT(!Dart_IsError(super_type)); |
| 2065 EXPECT(super_type == Dart_Null()); | 2068 EXPECT(super_type == Dart_Null()); |
| 2066 } | 2069 } |
| 2067 | 2070 |
| 2068 } // namespace dart | 2071 } // namespace dart |
| OLD | NEW |