| 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 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
| 10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 3025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3036 " (() => new MyClass())();\n" | 3036 " (() => new MyClass())();\n" |
| 3037 "}\n"; | 3037 "}\n"; |
| 3038 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); | 3038 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); |
| 3039 EXPECT_VALID(lib); | 3039 EXPECT_VALID(lib); |
| 3040 Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); | 3040 Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); |
| 3041 EXPECT_ERROR( | 3041 EXPECT_ERROR( |
| 3042 result, | 3042 result, |
| 3043 "Unhandled exception:\n" | 3043 "Unhandled exception:\n" |
| 3044 "MyException\n" | 3044 "MyException\n" |
| 3045 "#0 baz (dart:test-lib:2:3)\n" | 3045 "#0 baz (dart:test-lib:2:3)\n" |
| 3046 "#1 _OtherClass._OtherClass._named (dart:test-lib:7:8)\n" | 3046 "#1 globalVar= (dart:test-lib:12:7)\n" |
| 3047 "#2 globalVar= (dart:test-lib:12:7)\n" | 3047 "#2 _bar (dart:test-lib:16:3)\n" |
| 3048 "#3 _bar (dart:test-lib:16:3)\n" | 3048 "#3 MyClass.field (dart:test-lib:25:9)\n" |
| 3049 "#4 MyClass.field (dart:test-lib:25:9)\n" | 3049 "#4 MyClass.foo.fooHelper (dart:test-lib:30:7)\n" |
| 3050 "#5 MyClass.foo.fooHelper (dart:test-lib:30:7)\n" | 3050 "#5 MyClass.foo (dart:test-lib:32:14)\n" |
| 3051 "#6 MyClass.foo (dart:test-lib:32:14)\n" | 3051 "#6 MyClass.MyClass.<anonymous closure> (dart:test-lib:21:15)\n" |
| 3052 "#7 MyClass.MyClass.<anonymous closure> (dart:test-lib:21:15)\n" | 3052 "#7 MyClass.MyClass (dart:test-lib:21:18)\n" |
| 3053 "#8 MyClass.MyClass (dart:test-lib:21:18)\n" | 3053 "#8 main.<anonymous closure> (dart:test-lib:37:14)\n" |
| 3054 "#9 main.<anonymous closure> (dart:test-lib:37:14)\n" | 3054 "#9 main (dart:test-lib:37:24)"); |
| 3055 "#10 main (dart:test-lib:37:24)"); | |
| 3056 } | 3055 } |
| 3057 | 3056 |
| 3058 #endif // !defined(TARGET_ARCH_ARM64) | 3057 #endif // !defined(TARGET_ARCH_ARM64) |
| 3059 | 3058 |
| 3060 TEST_CASE(WeakProperty_PreserveCrossGen) { | 3059 TEST_CASE(WeakProperty_PreserveCrossGen) { |
| 3061 Isolate* isolate = Isolate::Current(); | 3060 Isolate* isolate = Isolate::Current(); |
| 3062 WeakProperty& weak = WeakProperty::Handle(); | 3061 WeakProperty& weak = WeakProperty::Handle(); |
| 3063 { | 3062 { |
| 3064 // Weak property and value in new. Key in old. | 3063 // Weak property and value in new. Key in old. |
| 3065 HANDLESCOPE(isolate); | 3064 HANDLESCOPE(isolate); |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4024 TEST_CASE(PrintToJSONStream) { | 4023 TEST_CASE(PrintToJSONStream) { |
| 4025 Heap* heap = Isolate::Current()->heap(); | 4024 Heap* heap = Isolate::Current()->heap(); |
| 4026 heap->CollectAllGarbage(); | 4025 heap->CollectAllGarbage(); |
| 4027 JSONTypeVerifier verifier; | 4026 JSONTypeVerifier verifier; |
| 4028 heap->IterateObjects(&verifier); | 4027 heap->IterateObjects(&verifier); |
| 4029 } | 4028 } |
| 4030 | 4029 |
| 4031 #endif // !defined(TARGET_ARCH_ARM64) | 4030 #endif // !defined(TARGET_ARCH_ARM64) |
| 4032 | 4031 |
| 4033 } // namespace dart | 4032 } // namespace dart |
| OLD | NEW |