| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assembler.h" | 5 #include "vm/assembler.h" |
| 6 #include "vm/assert.h" | 6 #include "vm/assert.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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 String& url = String::Handle(is_static ? | 39 String& url = String::Handle(is_static ? |
| 40 String::New("dart-test:DartStaticResolve") : | 40 String::New("dart-test:DartStaticResolve") : |
| 41 String::New("dart-test:DartDynamicResolve")); | 41 String::New("dart-test:DartDynamicResolve")); |
| 42 String& source = String::Handle(String::New(script_chars)); | 42 String& source = String::Handle(String::New(script_chars)); |
| 43 Script& script = Script::Handle(Script::New(url, source, RawScript::kScript)); | 43 Script& script = Script::Handle(Script::New(url, source, RawScript::kScript)); |
| 44 const String& lib_name = String::Handle(String::New(test_library_name)); | 44 const String& lib_name = String::Handle(String::New(test_library_name)); |
| 45 Library& lib = Library::Handle(Library::New(lib_name)); | 45 Library& lib = Library::Handle(Library::New(lib_name)); |
| 46 lib.Register(); | 46 lib.Register(); |
| 47 EXPECT(CompilerTest::TestCompileScript(lib, script)); | 47 EXPECT(CompilerTest::TestCompileScript(lib, script)); |
| 48 EXPECT(ClassFinalizer::FinalizeAllClasses()); | 48 EXPECT(ClassFinalizer::FinalizePendingClasses()); |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 // Setup a static function for invocation. | 52 // Setup a static function for invocation. |
| 53 static void SetupStaticFunction(const char* test_library_name, | 53 static void SetupStaticFunction(const char* test_library_name, |
| 54 const char* test_class_name, | 54 const char* test_class_name, |
| 55 const char* test_static_function_name) { | 55 const char* test_static_function_name) { |
| 56 // Setup a static dart class and function. | 56 // Setup a static dart class and function. |
| 57 SetupFunction(test_library_name, | 57 SetupFunction(test_library_name, |
| 58 test_class_name, | 58 test_class_name, |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 super_function_name, | 218 super_function_name, |
| 219 kNumPositionalArguments, | 219 kNumPositionalArguments, |
| 220 kNumNamedArguments)); | 220 kNumNamedArguments)); |
| 221 EXPECT(!super_function.IsNull()); | 221 EXPECT(!super_function.IsNull()); |
| 222 } | 222 } |
| 223 } | 223 } |
| 224 | 224 |
| 225 #endif // TARGET_ARCH_IA32. | 225 #endif // TARGET_ARCH_IA32. |
| 226 | 226 |
| 227 } // namespace dart | 227 } // namespace dart |
| OLD | NEW |