| 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 // TODO(zra): Remove when tests are ready to enable. | 5 // TODO(zra): Remove when tests are ready to enable. |
| 6 #include "platform/globals.h" | 6 #include "platform/globals.h" |
| 7 #if !defined(TARGET_ARCH_ARM64) | 7 #if !defined(TARGET_ARCH_ARM64) |
| 8 | 8 |
| 9 #include "include/dart_debugger_api.h" | 9 #include "include/dart_debugger_api.h" |
| 10 #include "include/dart_mirrors_api.h" | 10 #include "include/dart_mirrors_api.h" |
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 "void main() { \n" | 1386 "void main() { \n" |
| 1387 " A.foo(); \n" | 1387 " A.foo(); \n" |
| 1388 "} \n"; | 1388 "} \n"; |
| 1389 | 1389 |
| 1390 Dart_Isolate isolate = TestCase::CreateTestIsolate(); | 1390 Dart_Isolate isolate = TestCase::CreateTestIsolate(); |
| 1391 ASSERT(isolate != NULL); | 1391 ASSERT(isolate != NULL); |
| 1392 Dart_EnterScope(); | 1392 Dart_EnterScope(); |
| 1393 LoadScript(kScriptChars); | 1393 LoadScript(kScriptChars); |
| 1394 | 1394 |
| 1395 Dart_Handle result = Dart_SetNativeResolver(script_lib, | 1395 Dart_Handle result = Dart_SetNativeResolver(script_lib, |
| 1396 &InterruptNativeResolver); | 1396 &InterruptNativeResolver, |
| 1397 NULL); |
| 1397 EXPECT_VALID(result); | 1398 EXPECT_VALID(result); |
| 1398 | 1399 |
| 1399 Dart_Handle retval = Invoke("main"); | 1400 Dart_Handle retval = Invoke("main"); |
| 1400 EXPECT_VALID(retval); | 1401 EXPECT_VALID(retval); |
| 1401 Dart_ExitScope(); | 1402 Dart_ExitScope(); |
| 1402 Dart_ShutdownIsolate(); | 1403 Dart_ShutdownIsolate(); |
| 1403 } | 1404 } |
| 1404 | 1405 |
| 1405 | 1406 |
| 1406 TEST_CASE(Debug_InterruptIsolate) { | 1407 TEST_CASE(Debug_InterruptIsolate) { |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 " null, 5, 17, 5, 18, 9, 19, 12," | 2139 " null, 5, 17, 5, 18, 9, 19, 12," |
| 2139 " null, 6, 21, 1," | 2140 " null, 6, 21, 1," |
| 2140 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," | 2141 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," |
| 2141 " null, 9, 29, 1]", | 2142 " null, 9, 29, 1]", |
| 2142 tokens_cstr); | 2143 tokens_cstr); |
| 2143 } | 2144 } |
| 2144 | 2145 |
| 2145 } // namespace dart | 2146 } // namespace dart |
| 2146 | 2147 |
| 2147 #endif // !defined(TARGET_ARCH_ARM64) | 2148 #endif // !defined(TARGET_ARCH_ARM64) |
| OLD | NEW |