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 "platform/assert.h" | 5 #include "platform/assert.h" |
6 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
7 #include "vm/class_finalizer.h" | 7 #include "vm/class_finalizer.h" |
8 #include "vm/compiler.h" | 8 #include "vm/compiler.h" |
9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 String::New("dart-test:DartStaticResolve") : | 42 String::New("dart-test:DartStaticResolve") : |
43 String::New("dart-test:DartDynamicResolve")); | 43 String::New("dart-test:DartDynamicResolve")); |
44 String& source = String::Handle(String::New(script_chars)); | 44 String& source = String::Handle(String::New(script_chars)); |
45 Script& script = Script::Handle(Script::New(url, | 45 Script& script = Script::Handle(Script::New(url, |
46 source, | 46 source, |
47 RawScript::kScriptTag)); | 47 RawScript::kScriptTag)); |
48 const String& lib_name = String::Handle(String::New(test_library_name)); | 48 const String& lib_name = String::Handle(String::New(test_library_name)); |
49 Library& lib = Library::Handle(Library::New(lib_name)); | 49 Library& lib = Library::Handle(Library::New(lib_name)); |
50 lib.Register(); | 50 lib.Register(); |
51 EXPECT(CompilerTest::TestCompileScript(lib, script)); | 51 EXPECT(CompilerTest::TestCompileScript(lib, script)); |
52 EXPECT(ClassFinalizer::FinalizePendingClasses()); | 52 EXPECT(ClassFinalizer::FinalizeAllClasses()); |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 // Setup a static function for invocation. | 56 // Setup a static function for invocation. |
57 static void SetupStaticFunction(const char* test_library_name, | 57 static void SetupStaticFunction(const char* test_library_name, |
58 const char* test_class_name, | 58 const char* test_class_name, |
59 const char* test_static_function_name) { | 59 const char* test_static_function_name) { |
60 // Setup a static dart class and function. | 60 // Setup a static dart class and function. |
61 SetupFunction(test_library_name, | 61 SetupFunction(test_library_name, |
62 test_class_name, | 62 test_class_name, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 super_function_name, | 222 super_function_name, |
223 kNumPositionalArguments, | 223 kNumPositionalArguments, |
224 kNumNamedArguments)); | 224 kNumNamedArguments)); |
225 EXPECT(!super_function.IsNull()); | 225 EXPECT(!super_function.IsNull()); |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
229 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). | 229 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). |
230 | 230 |
231 } // namespace dart | 231 } // namespace dart |
OLD | NEW |