| 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/compiler.h" | 5 #include "vm/compiler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 | 8 |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 Error& error = Error::Handle(isolate); | 233 Error& error = Error::Handle(isolate); |
| 234 error = isolate->object_store()->sticky_error(); | 234 error = isolate->object_store()->sticky_error(); |
| 235 isolate->object_store()->clear_sticky_error(); | 235 isolate->object_store()->clear_sticky_error(); |
| 236 return error.raw(); | 236 return error.raw(); |
| 237 } | 237 } |
| 238 UNREACHABLE(); | 238 UNREACHABLE(); |
| 239 return Error::null(); | 239 return Error::null(); |
| 240 } | 240 } |
| 241 | 241 |
| 242 | 242 |
| 243 | |
| 244 // Return false if bailed out. | 243 // Return false if bailed out. |
| 245 static bool CompileParsedFunctionHelper(ParsedFunction* parsed_function, | 244 static bool CompileParsedFunctionHelper(ParsedFunction* parsed_function, |
| 246 bool optimized, | 245 bool optimized, |
| 247 intptr_t osr_id) { | 246 intptr_t osr_id) { |
| 248 const Function& function = parsed_function->function(); | 247 const Function& function = parsed_function->function(); |
| 249 if (optimized && !function.IsOptimizable()) { | 248 if (optimized && !function.IsOptimizable()) { |
| 250 return false; | 249 return false; |
| 251 } | 250 } |
| 252 TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer); | 251 TimerScope timer(FLAG_compiler_stats, &CompilerStats::codegen_timer); |
| 253 bool is_compiled = false; | 252 bool is_compiled = false; |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 const Object& result = | 978 const Object& result = |
| 980 Object::Handle(isolate->object_store()->sticky_error()); | 979 Object::Handle(isolate->object_store()->sticky_error()); |
| 981 isolate->object_store()->clear_sticky_error(); | 980 isolate->object_store()->clear_sticky_error(); |
| 982 return result.raw(); | 981 return result.raw(); |
| 983 } | 982 } |
| 984 UNREACHABLE(); | 983 UNREACHABLE(); |
| 985 return Object::null(); | 984 return Object::null(); |
| 986 } | 985 } |
| 987 | 986 |
| 988 } // namespace dart | 987 } // namespace dart |
| OLD | NEW |