| 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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 // Function fits the bill. | 1469 // Function fits the bill. |
| 1470 const char* kEvalConst = "eval_const"; | 1470 const char* kEvalConst = "eval_const"; |
| 1471 const Function& func = Function::ZoneHandle(Function::New( | 1471 const Function& func = Function::ZoneHandle(Function::New( |
| 1472 String::Handle(Symbols::New(kEvalConst)), | 1472 String::Handle(Symbols::New(kEvalConst)), |
| 1473 RawFunction::kRegularFunction, | 1473 RawFunction::kRegularFunction, |
| 1474 true, // static function | 1474 true, // static function |
| 1475 false, // not const function | 1475 false, // not const function |
| 1476 false, // not abstract | 1476 false, // not abstract |
| 1477 false, // not external | 1477 false, // not external |
| 1478 false, // not native | 1478 false, // not native |
| 1479 Class::Handle(Type::Handle(Type::Function()).type_class()), | 1479 Class::Handle(Type::Handle(Type::DartFunctionType()).type_class()), |
| 1480 fragment->token_pos())); | 1480 fragment->token_pos())); |
| 1481 | 1481 |
| 1482 func.set_result_type(Object::dynamic_type()); | 1482 func.set_result_type(Object::dynamic_type()); |
| 1483 func.set_num_fixed_parameters(0); | 1483 func.set_num_fixed_parameters(0); |
| 1484 func.SetNumOptionalParameters(0, true); | 1484 func.SetNumOptionalParameters(0, true); |
| 1485 // Manually generated AST, do not recompile. | 1485 // Manually generated AST, do not recompile. |
| 1486 func.SetIsOptimizable(false); | 1486 func.SetIsOptimizable(false); |
| 1487 func.set_is_debuggable(false); | 1487 func.set_is_debuggable(false); |
| 1488 | 1488 |
| 1489 // We compile the function here, even though InvokeFunction() below | 1489 // We compile the function here, even though InvokeFunction() below |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1879 } | 1879 } |
| 1880 | 1880 |
| 1881 | 1881 |
| 1882 void BackgroundCompiler::EnsureInit(Thread* thread) { | 1882 void BackgroundCompiler::EnsureInit(Thread* thread) { |
| 1883 UNREACHABLE(); | 1883 UNREACHABLE(); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 #endif // DART_PRECOMPILED_RUNTIME | 1886 #endif // DART_PRECOMPILED_RUNTIME |
| 1887 | 1887 |
| 1888 } // namespace dart | 1888 } // namespace dart |
| OLD | NEW |