| 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 "vm/unit_test.h" | 5 #include "vm/unit_test.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "bin/builtin.h" | 9 #include "bin/builtin.h" |
| 10 #include "bin/dartutils.h" | 10 #include "bin/dartutils.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 error.ToErrorCString()); | 234 error.ToErrorCString()); |
| 235 } | 235 } |
| 236 return error.IsNull(); | 236 return error.IsNull(); |
| 237 } | 237 } |
| 238 | 238 |
| 239 | 239 |
| 240 bool CompilerTest::TestCompileFunction(const Function& function) { | 240 bool CompilerTest::TestCompileFunction(const Function& function) { |
| 241 Isolate* isolate = Isolate::Current(); | 241 Isolate* isolate = Isolate::Current(); |
| 242 ASSERT(isolate != NULL); | 242 ASSERT(isolate != NULL); |
| 243 ASSERT(ClassFinalizer::AllClassesFinalized()); | 243 ASSERT(ClassFinalizer::AllClassesFinalized()); |
| 244 const Error& error = Error::Handle(Compiler::CompileFunction(function)); | 244 const Error& error = Error::Handle(Compiler::CompileFunction(isolate, |
| 245 function)); |
| 245 return error.IsNull(); | 246 return error.IsNull(); |
| 246 } | 247 } |
| 247 | 248 |
| 248 | 249 |
| 249 } // namespace dart | 250 } // namespace dart |
| OLD | NEW |