| 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 <stdio.h> | 5 #include <stdio.h> |
| 6 | 6 |
| 7 #include "vm/unit_test.h" | 7 #include "vm/unit_test.h" |
| 8 | 8 |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 Isolate* isolate = Isolate::Current(); | 187 Isolate* isolate = Isolate::Current(); |
| 188 ASSERT(isolate != NULL); | 188 ASSERT(isolate != NULL); |
| 189 const Error& error = Error::Handle(Compiler::Compile(library, script)); | 189 const Error& error = Error::Handle(Compiler::Compile(library, script)); |
| 190 return error.IsNull(); | 190 return error.IsNull(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 | 193 |
| 194 bool CompilerTest::TestCompileFunction(const Function& function) { | 194 bool CompilerTest::TestCompileFunction(const Function& function) { |
| 195 Isolate* isolate = Isolate::Current(); | 195 Isolate* isolate = Isolate::Current(); |
| 196 ASSERT(isolate != NULL); | 196 ASSERT(isolate != NULL); |
| 197 ASSERT(ClassFinalizer::AllClassesFinalized()); |
| 197 const Error& error = Error::Handle(Compiler::CompileFunction(function)); | 198 const Error& error = Error::Handle(Compiler::CompileFunction(function)); |
| 198 return error.IsNull(); | 199 return error.IsNull(); |
| 199 } | 200 } |
| 200 | 201 |
| 201 } // namespace dart | 202 } // namespace dart |
| OLD | NEW |