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_mirrors_api.h" | 5 #include "include/dart_mirrors_api.h" |
6 #include "include/dart_tools_api.h" | 6 #include "include/dart_tools_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/lockers.h" | 9 #include "vm/lockers.h" |
10 #include "vm/unit_test.h" | 10 #include "vm/unit_test.h" |
(...skipping 2120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2131 "}\n" | 2131 "}\n" |
2132 "class Test4<A, B> extends Test2<A> {\n" | 2132 "class Test4<A, B> extends Test2<A> {\n" |
2133 "}\n" | 2133 "}\n" |
2134 "class Test5<A, B, C> extends Test4<A, B> {\n" | 2134 "class Test5<A, B, C> extends Test4<A, B> {\n" |
2135 "}\n" | 2135 "}\n" |
2136 "var s = new Set();\n" | 2136 "var s = new Set();\n" |
2137 "var l = new List();\n" | 2137 "var l = new List();\n" |
2138 "int main() {\n" | 2138 "int main() {\n" |
2139 "}\n"; | 2139 "}\n"; |
2140 | 2140 |
2141 Isolate* isolate = Isolate::Current(); | 2141 |
2142 Zone* zone = isolate->current_zone(); | 2142 Zone* zone = thread->zone(); |
2143 LoadScript(kScriptChars); | 2143 LoadScript(kScriptChars); |
2144 ASSERT(script_lib != NULL); | 2144 ASSERT(script_lib != NULL); |
2145 ASSERT(Dart_IsLibrary(script_lib)); | 2145 ASSERT(Dart_IsLibrary(script_lib)); |
2146 Dart_Handle core_lib = Dart_LookupLibrary(NewString("dart:core")); | 2146 Dart_Handle core_lib = Dart_LookupLibrary(NewString("dart:core")); |
2147 | 2147 |
2148 Dart_Handle Test_name = Dart_NewStringFromCString("Test"); | 2148 Dart_Handle Test_name = Dart_NewStringFromCString("Test"); |
2149 Dart_Handle Test1_name = Dart_NewStringFromCString("Test1"); | 2149 Dart_Handle Test1_name = Dart_NewStringFromCString("Test1"); |
2150 Dart_Handle Test2_name = Dart_NewStringFromCString("Test2"); | 2150 Dart_Handle Test2_name = Dart_NewStringFromCString("Test2"); |
2151 Dart_Handle Test3_name = Dart_NewStringFromCString("Test3"); | 2151 Dart_Handle Test3_name = Dart_NewStringFromCString("Test3"); |
2152 Dart_Handle Test4_name = Dart_NewStringFromCString("Test4"); | 2152 Dart_Handle Test4_name = Dart_NewStringFromCString("Test4"); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2316 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," | 2316 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," |
2317 " null, 4, 13, 3, 14, 10," | 2317 " null, 4, 13, 3, 14, 10," |
2318 " null, 5, 17, 5, 18, 9, 19, 12," | 2318 " null, 5, 17, 5, 18, 9, 19, 12," |
2319 " null, 6, 21, 1," | 2319 " null, 6, 21, 1," |
2320 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," | 2320 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," |
2321 " null, 9, 29, 1]", | 2321 " null, 9, 29, 1]", |
2322 tokens_cstr); | 2322 tokens_cstr); |
2323 } | 2323 } |
2324 | 2324 |
2325 } // namespace dart | 2325 } // namespace dart |
OLD | NEW |